]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP client: fix passing of tvhweight
authorJaroslav Kysela <perex@perex.cz>
Fri, 22 Jan 2016 15:56:31 +0000 (16:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 22 Jan 2016 15:56:31 +0000 (16:56 +0100)
src/input/mpegts/satip/satip_rtsp.c

index 99e168c9911addb88e47e754e69f02115a4f9c32..4ea84677b67d1db9b5354097cdeb214b025fe756 100644 (file)
@@ -300,7 +300,7 @@ satip_rtsp_play( http_client_t *hc, const char *pids,
     }
   }
   if (weight)
-    htsbuf_qprintf(&q, "tvhweight=%d", weight);
+    htsbuf_qprintf(&q, "%stvhweight=%d", htsbuf_empty(&q) ? "" : "&", weight);
   if (hc->hc_rtsp_stream_id >= 0)
     snprintf(stream = _stream, sizeof(_stream), "/stream=%li",
              hc->hc_rtsp_stream_id);