Terminate script when ffmplay window closes

This commit is contained in:
Rien Maertens 2021-01-08 11:05:06 +01:00 committed by Rien
parent 57dcd7ca27
commit 73c5c7c131

View File

@ -214,7 +214,7 @@ fi
$receive_cmd \ $receive_cmd \
| $decompress \ | $decompress \
| $host_passthrough \ | $host_passthrough \
| "$output_cmd" \ | ("$output_cmd" \
-vcodec rawvideo \ -vcodec rawvideo \
-loglevel "$loglevel" \ -loglevel "$loglevel" \
-f rawvideo \ -f rawvideo \
@ -222,4 +222,6 @@ $receive_cmd \
-video_size "$width,$height" \ -video_size "$width,$height" \
$window_title_option \ $window_title_option \
-i - \ -i - \
"$@" "$@" \
; kill $$
)