]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP Server: DVBC - fix stream id initialization 597/head
authorJaroslav Kysela <perex@perex.cz>
Thu, 19 Mar 2015 22:01:28 +0000 (23:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 19 Mar 2015 22:01:28 +0000 (23:01 +0100)
src/satip/rtsp.c

index 495583fa6c789eca95c4ba3e7dd6b0f0707a727a..2098d21d2cc4634f237d3783ae63643e973270b2 100644 (file)
@@ -980,8 +980,13 @@ rtsp_parse_cmd
     if (sr < 1000) goto end;
     ds = atoi(http_arg_get_remove(&hc->hc_req_args, "ds"));
     if (ds < 0 || ds > 255) goto end;
-    plp = atoi(http_arg_get_remove(&hc->hc_req_args, "plp"));
-    if (plp < 0 || plp > 255) goto end;
+    s = http_arg_get_remove(&hc->hc_req_args, "plp");
+    if (s[0]) {
+      plp = atoi(http_arg_get_remove(&hc->hc_req_args, "plp"));
+      if (plp < 0 || plp > 255) goto end;
+    } else {
+      plp = DVB_NO_STREAM_ID_FILTER;
+    }
     specinv = atoi(http_arg_get_remove(&hc->hc_req_args, "specinv"));
     if (specinv < 0 || specinv > 1) goto end;