projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee7b228
)
range: handle ranges starting with -
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 19 Nov 2012 12:33:32 +0000
(13:33 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 19 Nov 2012 12:56:53 +0000
(13:56 +0100)
An RTSP range that starts with a - means that the first value of the range is
the end of the stream.
gst-libs/gst/rtsp/gstrtsprange.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtsp/gstrtsprange.c
b/gst-libs/gst/rtsp/gstrtsprange.c
index
909f922
..
b46dc55
100644
(file)
--- a/
gst-libs/gst/rtsp/gstrtsprange.c
+++ b/
gst-libs/gst/rtsp/gstrtsprange.c
@@
-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;