diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-12-07 10:59:05 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-12-07 10:59:05 +0000 |
commit | 8dbb58093f78684e94141d3f6be2c9b96c273b2d (patch) | |
tree | c08339a6e0507fd55ffa8ec81bb45b45927f9305 /libs | |
parent | a258e873426aff3cf1381cca197cbab284666db4 (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasesink.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 52fda6261..38d378942 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -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: |