From cabe5746fba9cd37f22fe4f3342f2598592f8a1e Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 22 Sep 2014 20:15:13 +0200 Subject: [PATCH] videoencoder: log the timestamps if we are unhappy about them When complaining about the DTS!=PTS on keyframes log the actualy timestamps. --- gst-libs/gst/video/gstvideoencoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideoencoder.c b/gst-libs/gst/video/gstvideoencoder.c index d7365c98d2..e09f861aa4 100644 --- a/gst-libs/gst/video/gstvideoencoder.c +++ b/gst-libs/gst/video/gstvideoencoder.c @@ -1971,7 +1971,9 @@ gst_video_encoder_finish_frame (GstVideoEncoder * encoder, if (!GST_CLOCK_TIME_IS_VALID (frame->dts)) { frame->dts = frame->pts; } else if (GST_CLOCK_TIME_IS_VALID (frame->pts) && frame->pts != frame->dts) { - GST_WARNING_OBJECT (encoder, "keyframe PTS != DTS"); + GST_WARNING_OBJECT (encoder, "keyframe PTS (%" GST_TIME_FORMAT + ") != DTS (%" GST_TIME_FORMAT ")", GST_TIME_ARGS (frame->pts), + GST_TIME_ARGS (frame->dts)); } } else { GST_BUFFER_FLAG_SET (frame->output_buffer, GST_BUFFER_FLAG_DELTA_UNIT);