File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -585,9 +585,8 @@ grab_stream() {
585585
586586watchdog () {
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..."
You can’t perform that action at this time.
0 commit comments