From db7ea32f354f5ef060cb2c8f2a0444ee8c0ff563 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Nov 2012 13:33:32 +0100 Subject: [PATCH] range: handle ranges starting with - An RTSP range that starts with a - means that the first value of the range is the end of the stream. --- gst-libs/gst/rtsp/gstrtsprange.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtsprange.c b/gst-libs/gst/rtsp/gstrtsprange.c index 909f922afd..b46dc55464 100644 --- a/gst-libs/gst/rtsp/gstrtsprange.c +++ b/gst-libs/gst/rtsp/gstrtsprange.c @@ -81,7 +81,7 @@ parse_npt_time (const gchar * str, GstRTSPTime * time) { if (strncmp (str, "now", 3) == 0) { time->type = GST_RTSP_TIME_NOW; - } else if (str[0] == '\0') { + } else if (str[0] == '\0' || str[0] == '-') { time->type = GST_RTSP_TIME_END; } else if (strstr (str, ":")) { gint hours, mins;