diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-09-16 00:00:28 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-10-12 11:26:30 +0100 |
commit | 020cf2c0f9b78110aaf7af2689e005f81fd84a1a (patch) | |
tree | f6ebd05e01c85725f18366f537aa82a980f76982 | |
parent | d94bcc1b716a3deee154ca7772630b213edbb7e9 (diff) |
a52dec: Add some debugging for new segment events
-rw-r--r-- | ext/a52dec/gsta52dec.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 831548c9..15ed50cc 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -466,10 +466,10 @@ gst_a52dec_sink_event (GstPad * pad, GstEvent * event) GstFormat fmt; gboolean update; gint64 start, end, pos; - gdouble rate; + gdouble rate, arate; - gst_event_parse_new_segment (event, &update, &rate, &fmt, &start, &end, - &pos); + gst_event_parse_new_segment_full (event, &update, &rate, &arate, &fmt, + &start, &end, &pos); /* drain queued buffers before activating the segment so that we can clip * against the old segment first */ @@ -487,6 +487,11 @@ gst_a52dec_sink_event (GstPad * pad, GstEvent * event) } else { a52dec->time = start; a52dec->sent_segment = TRUE; + GST_DEBUG_OBJECT (a52dec, + "Pushing newseg rate %g, applied rate %g, format %d, start %" + G_GINT64_FORMAT ", stop %" G_GINT64_FORMAT ", pos %" + G_GINT64_FORMAT, rate, arate, fmt, start, end, time); + ret = gst_pad_push_event (a52dec->srcpad, event); } |