Skip to content

Commit 335f132

Browse files
committed
Merge branch 'simultaneous_video_streams'
* simultaneous_video_streams: bug-fix: - 起動時にrtspserverが起動していない。rtspserver.shの修正漏れ
2 parents 69bd6da + 0f79332 commit 335f132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlay_rootfs/scripts/rtspserver.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ RTSP_AUDIO1=$(awk -F "=" '/RTSP_AUDIO1 *=/ {print $2}' $HACK_INI)
2121
RTSP_OVER_HTTP=$(awk -F "=" '/RTSP_OVER_HTTP *=/ {print $2}' $HACK_INI)
2222

2323
if [ "$1" = "watchdog" ]; then
24-
[ "$RTSPSERVER" = "on" ] || exit 0
24+
[ "$RTSP_VIDEO0" = "on" -o "$RTSP_VIDEO1" = "on" ] || exit 0
2525
pidof v4l2rtspserver > /dev/null && exit 0
2626
fi
2727

28-
if [ "$1" = "on" -o "$1" = "restart" -o "$1" = "watchdog" -o "$RTSPSERVER" = "on" ]; then
28+
if [ "$1" = "on" -o "$1" = "restart" -o "$1" = "watchdog" -o "$RTSP_VIDEO0" = "on" -o "$RTSP_VIDEO1" = "on" ]; then
2929
/scripts/cmd video 0 $RTSP_VIDEO0 > /dev/null
3030
/scripts/cmd video 1 $RTSP_VIDEO1 > /dev/null
3131
/scripts/cmd audio 0 $RTSP_AUDIO0 > /dev/null

0 commit comments

Comments
 (0)