rtsp: fix parsing of 'now-' ranges.
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Mar 2009 12:48:37 +0000 (13:48 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 5 Mar 2009 12:48:37 +0000 (13:48 +0100)
--

gst-libs/gst/rtsp/gstrtsprange.c

index ceb5258..bbfcc0f 100644 (file)
@@ -69,7 +69,7 @@
 static GstRTSPResult
 parse_npt_time (const gchar * str, GstRTSPTime * time)
 {
-  if (strcmp (str, "now") == 0) {
+  if (strncmp (str, "now", 3) == 0) {
     time->type = GST_RTSP_TIME_NOW;
   } else if (str[0] == '\0') {
     time->type = GST_RTSP_TIME_END;