fix: rtsps is rtsp too

This commit is contained in:
frederik
2025-03-11 14:10:49 +01:00
parent 0ffe3eec26
commit 28bfe59204
+1 -1
View File
@@ -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