videodecoder: squash two message logs into one
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Apr 2015 17:18:58 +0000 (19:18 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 9 Jun 2016 16:08:08 +0000 (19:08 +0300)
There were two consecutive log messages in gst_video_decoder_decode_frame().
Given the information they provide, it is more efficient to squash them into a
single one.

gst-libs/gst/video/gstvideodecoder.c

index cbeb847..3dd82f0 100644 (file)
@@ -3439,9 +3439,9 @@ gst_video_decoder_decode_frame (GstVideoDecoder * decoder,
   frame->abidata.ABI.ts = frame->dts;
   frame->abidata.ABI.ts2 = frame->pts;
 
-  GST_LOG_OBJECT (decoder, "PTS %" GST_TIME_FORMAT ", DTS %" GST_TIME_FORMAT,
-      GST_TIME_ARGS (frame->pts), GST_TIME_ARGS (frame->dts));
-  GST_LOG_OBJECT (decoder, "dist %d", frame->distance_from_sync);
+  GST_LOG_OBJECT (decoder, "PTS %" GST_TIME_FORMAT ", DTS %" GST_TIME_FORMAT
+      ", dist %d", GST_TIME_ARGS (frame->pts), GST_TIME_ARGS (frame->dts),
+      frame->distance_from_sync);
 
   gst_video_codec_frame_ref (frame);
   priv->frames = g_list_append (priv->frames, frame);