]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp_server: fix htsp_subscription_speed() - speed can be negative
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 19:52:30 +0000 (20:52 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 19:52:30 +0000 (20:52 +0100)
src/htsp_server.c

index 9f4330e75e76811869a29f44c7278149fb8fd5e3..c7549822712b9a994ef7c1807d1eebea3f77b474 100644 (file)
@@ -4015,7 +4015,7 @@ htsp_subscription_speed(htsp_subscription_t *hs, int speed)
   tvhdebug("htsp", "%s - subscription speed", hs->hs_htsp->htsp_logname);
   htsmsg_add_str(m, "method", "subscriptionSpeed");
   htsmsg_add_u32(m, "subscriptionId", hs->hs_sid);
-  htsmsg_add_u32(m, "speed", speed);
+  htsmsg_add_s32(m, "speed", speed);
   htsp_send_subscription(hs->hs_htsp, m, NULL, hs, 0);
 }