range: a single - is not allowed
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 19 Nov 2012 12:37:56 +0000 (13:37 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 19 Nov 2012 12:56:53 +0000 (13:56 +0100)
gst-libs/gst/rtsp/gstrtsprange.c

index b46dc55..3bb3b30 100644 (file)
@@ -118,6 +118,11 @@ parse_npt_range (const gchar * str, GstRTSPTimeRange * range)
 
   res = parse_npt_time (p + 1, &range->max);
 
+  /* a single - is not allowed */
+  if (range->min.type == GST_RTSP_TIME_END
+      && range->max.type == GST_RTSP_TIME_END)
+    return GST_RTSP_EINVAL;
+
 done:
   return res;
 }