mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 10:34:11 +00:00
range: handle ranges starting with -
An RTSP range that starts with a - means that the first value of the range is the end of the stream.
This commit is contained in:
parent
ee7b228be5
commit
db7ea32f35
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ parse_npt_time (const gchar * str, GstRTSPTime * time)
|
|||
{
|
||||
if (strncmp (str, "now", 3) == 0) {
|
||||
time->type = GST_RTSP_TIME_NOW;
|
||||
} else if (str[0] == '\0') {
|
||||
} else if (str[0] == '\0' || str[0] == '-') {
|
||||
time->type = GST_RTSP_TIME_END;
|
||||
} else if (strstr (str, ":")) {
|
||||
gint hours, mins;
|
||||
|
|
Loading…
Reference in a new issue