gst/rtsp/gstrtspsrc.c: Add some more debugging.
Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (new_session_pad), (gst_rtspsrc_parse_range): Add some more debugging. Use the reanges received from the server unconditionally. Fixes #561625.
This commit is contained in:
parent
81dd155274
commit
0b5fea8568
@ -1,3 +1,11 @@
|
|||||||
|
2008-11-24 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/rtsp/gstrtspsrc.c: (new_session_pad),
|
||||||
|
(gst_rtspsrc_parse_range):
|
||||||
|
Add some more debugging.
|
||||||
|
Use the reanges received from the server unconditionally.
|
||||||
|
Fixes #561625.
|
||||||
|
|
||||||
2008-11-23 Stefan Kost <ensonic@users.sf.net>
|
2008-11-23 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* ext/pulse/pulsesink.c:
|
* ext/pulse/pulsesink.c:
|
||||||
|
@ -1667,6 +1667,10 @@ new_session_pad (GstElement * session, GstPad * pad, GstRTSPSrc * src)
|
|||||||
all_added = TRUE;
|
all_added = TRUE;
|
||||||
for (lstream = src->streams; lstream; lstream = g_list_next (lstream)) {
|
for (lstream = src->streams; lstream; lstream = g_list_next (lstream)) {
|
||||||
stream = (GstRTSPStream *) lstream->data;
|
stream = (GstRTSPStream *) lstream->data;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (src, "stream %p, container %d, disabled %d, added %d",
|
||||||
|
stream, stream->container, stream->disabled, stream->added);
|
||||||
|
|
||||||
/* a container stream only needs one pad added. Also disabled streams don't
|
/* a container stream only needs one pad added. Also disabled streams don't
|
||||||
* count */
|
* count */
|
||||||
if (!stream->container && !stream->disabled && !stream->added) {
|
if (!stream->container && !stream->disabled && !stream->added) {
|
||||||
@ -4117,7 +4121,10 @@ gst_rtspsrc_parse_range (GstRTSPSrc * src, const gchar * range,
|
|||||||
GST_DEBUG_OBJECT (src, "range: min %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (src, "range: min %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (seconds));
|
GST_TIME_ARGS (seconds));
|
||||||
|
|
||||||
gst_segment_set_last_stop (segment, GST_FORMAT_TIME, seconds);
|
/* we need to start playback without clipping from the position reported by
|
||||||
|
* the server */
|
||||||
|
segment->start = seconds;
|
||||||
|
segment->last_stop = seconds;
|
||||||
|
|
||||||
if (therange->max.type == GST_RTSP_TIME_NOW)
|
if (therange->max.type == GST_RTSP_TIME_NOW)
|
||||||
seconds = -1;
|
seconds = -1;
|
||||||
@ -4959,6 +4966,7 @@ gst_rtspsrc_uri_get_type (void)
|
|||||||
{
|
{
|
||||||
return GST_URI_SRC;
|
return GST_URI_SRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar **
|
static gchar **
|
||||||
gst_rtspsrc_uri_get_protocols (void)
|
gst_rtspsrc_uri_get_protocols (void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user