mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
libs/gst/base/gstbasesink.c: Improve debugging of events.
Original commit message from CVS: * libs/gst/base/gstbasesink.c: (gst_base_sink_event), (gst_base_sink_get_position): Improve debugging of events.
This commit is contained in:
parent
a258e87342
commit
8dbb58093f
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-12-07 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* libs/gst/base/gstbasesink.c: (gst_base_sink_event),
|
||||
(gst_base_sink_get_position):
|
||||
Improve debugging of events.
|
||||
|
||||
2006-12-07 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
Patch by: René Stadler <mail at renestadler dot de>
|
||||
|
|
|
@ -1796,6 +1796,8 @@ gst_base_sink_event (GstPad * pad, GstEvent * event)
|
|||
{
|
||||
GstFlowReturn ret;
|
||||
|
||||
GST_DEBUG_OBJECT (basesink, "newsegment %p", event);
|
||||
|
||||
basesink->have_newsegment = TRUE;
|
||||
|
||||
/* the new segment is a non prerollable item and does not block anything,
|
||||
|
@ -1815,6 +1817,8 @@ gst_base_sink_event (GstPad * pad, GstEvent * event)
|
|||
if (bclass->event)
|
||||
bclass->event (basesink, event);
|
||||
|
||||
GST_DEBUG_OBJECT (basesink, "flush-start %p", event);
|
||||
|
||||
/* make sure we are not blocked on the clock also clear any pending
|
||||
* eos state. */
|
||||
gst_base_sink_set_flushing (basesink, pad, TRUE);
|
||||
|
@ -1828,7 +1832,6 @@ gst_base_sink_event (GstPad * pad, GstEvent * event)
|
|||
* prerolled buffer */
|
||||
basesink->playing_async = TRUE;
|
||||
gst_element_lost_state (GST_ELEMENT_CAST (basesink));
|
||||
GST_DEBUG_OBJECT (basesink, "event unref %p %p", basesink, event);
|
||||
GST_PAD_STREAM_UNLOCK (pad);
|
||||
|
||||
gst_event_unref (event);
|
||||
|
@ -1837,6 +1840,8 @@ gst_base_sink_event (GstPad * pad, GstEvent * event)
|
|||
if (bclass->event)
|
||||
bclass->event (basesink, event);
|
||||
|
||||
GST_DEBUG_OBJECT (basesink, "flush-stop %p", event);
|
||||
|
||||
/* unset flushing so we can accept new data */
|
||||
gst_base_sink_set_flushing (basesink, pad, FALSE);
|
||||
|
||||
|
@ -1846,7 +1851,6 @@ gst_base_sink_event (GstPad * pad, GstEvent * event)
|
|||
GST_FORMAT_UNDEFINED);
|
||||
basesink->have_newsegment = FALSE;
|
||||
|
||||
GST_DEBUG_OBJECT (basesink, "event unref %p %p", basesink, event);
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue