rtsp: fix parsing of 'now-' ranges.

--
This commit is contained in:
Wim Taymans 2009-03-05 13:48:37 +01:00
parent 44574b0ca6
commit f69a3d953a

View 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;