fix: rtsps is rtsp too
This commit is contained in:
@@ -33,7 +33,7 @@ if [ ! -z $RTSP_STREAM ];then
|
|||||||
# Loop over the streams
|
# Loop over the streams
|
||||||
for i in "${RTSP_STREAMS_EXPLODED_ARRAY[@]}"
|
for i in "${RTSP_STREAMS_EXPLODED_ARRAY[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$i" == "rtsp://"* ]]; then
|
if [[ "$i" =~ ^rtsps?:// ]]; then
|
||||||
[ $FFMPEG_VERSION -lt 5 ] && PARAM=-stimeout || PARAM=-timeout
|
[ $FFMPEG_VERSION -lt 5 ] && PARAM=-stimeout || PARAM=-timeout
|
||||||
TIMEOUT_PARAM="$PARAM 10000000"
|
TIMEOUT_PARAM="$PARAM 10000000"
|
||||||
elif [[ "$i" =~ ^[a-z]+:// ]]; then
|
elif [[ "$i" =~ ^[a-z]+:// ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user