range: a single - is not allowed

This commit is contained in:
Wim Taymans 2012-11-19 13:37:56 +01:00
parent db7ea32f35
commit 25580430b0

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