a52dec: Add some debugging for new segment events
authorJan Schmidt <thaytan@noraisin.net>
Tue, 15 Sep 2009 23:00:28 +0000 (00:00 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Mon, 12 Oct 2009 10:26:30 +0000 (11:26 +0100)
ext/a52dec/gsta52dec.c

index 831548c..15ed50c 100644 (file)
@@ -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);
       }