mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
range: a single - is not allowed
This commit is contained in:
parent
db7ea32f35
commit
25580430b0
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue