Skip to content

Commit ba3cf5b

Browse files
committed
ctbcap: fix duplicate $EXT_FFMPEG_OPT generation
1 parent 575af6e commit ba3cf5b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ctbcap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,8 @@ grab_stream() {
585585

586586
watchdog() {
587587
while true; do
588-
unset STREAM_URL EXT_FFMPEG_OPT
589588
utils timemark_exec 'init_path -f "${WATCHDOG_LOGFILE}:10000" "${FFMPEG_LOGFILE}:20000"'
590-
fetch_m3u
589+
unset STREAM_URL EXT_FFMPEG_OPT && fetch_m3u
591590
# See the notes above fetch_m3u() .
592591
case $? in
593592
0)
@@ -605,7 +604,7 @@ watchdog() {
605604
|| { grab_stream 2>&1 | tee -a "${FFMPEG_LOGFILE}" >/dev/null 2>&1; }
606605
echo "[$(date "+%Y%m%d-%H%M%S")] Recording Interrupted..."
607606
utils timemark_exec 'init_path -d "${SAVE_PATH}:${SAVE_PATH_SPACE}" "${LOG_PATH}:${LOG_PATH_SPACE}"' || break
608-
fetch_m3u >/dev/null 2>&1
607+
unset STREAM_URL EXT_FFMPEG_OPT && fetch_m3u >/dev/null 2>&1
609608
case $? in
610609
0)
611610
echo "[$(date "+%Y%m%d-%H%M%S")] Restart recording..."

0 commit comments

Comments
 (0)