vp8enc: trace outgoing timestamps
authorOleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
Tue, 24 Jan 2012 10:22:46 +0000 (11:22 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 24 Jan 2012 11:21:26 +0000 (11:21 +0000)
add info level prints for outgoing timestamps.

Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
ext/vp8/gstvp8enc.c

index 5ed11e3a05ea6d18af88574ffd3d7b56e6d9aec2..b1f06e056a40282b28dd5808388af4716e8507d0 100644 (file)
@@ -1192,6 +1192,9 @@ gst_vp8_enc_shape_output (GstBaseVideoEncoder * base_video_encoder,
       gst_util_uint64_scale (frame->presentation_frame_number + 1,
       GST_SECOND * state->fps_d, state->fps_n);
 
+  GST_LOG_OBJECT (base_video_encoder, "src ts: %" GST_TIME_FORMAT,
+      GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
+
   ret = gst_pad_push (GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder), buf);
   if (ret != GST_FLOW_OK) {
     GST_WARNING_OBJECT (encoder, "flow error %d", ret);