videoaggregator: Print some debug output if we change the timestamp offset
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 Jun 2015 12:29:04 +0000 (14:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Jun 2015 12:29:04 +0000 (14:29 +0200)
gst-libs/gst/video/gstvideoaggregator.c

index cc1939977d995fef8c23edc08c8d925f8e88ca5f..a66ed3a350761f0af5784ccee43c32efcb4b15b6 100644 (file)
@@ -606,6 +606,10 @@ gst_videoaggregator_src_setcaps (GstVideoAggregator * vagg, GstCaps * caps)
     if (agg->segment.position != -1) {
       vagg->priv->ts_offset = agg->segment.position - agg->segment.start;
       vagg->priv->nframes = 0;
+      GST_DEBUG_OBJECT (vagg,
+          "Updating timestamp offset to %" GST_TIME_FORMAT " for segment %"
+          GST_SEGMENT_FORMAT, GST_TIME_ARGS (vagg->priv->ts_offset),
+          &agg->segment);
     }
     gst_videoaggregator_reset_qos (vagg);
   }