[gst-cvs] gst-ffmpeg: ffmpegdec: Fix debug statements

Edward Hervey bilboed at kemper.freedesktop.org
Tue Oct 12 07:18:16 PDT 2010


Module: gst-ffmpeg
Branch: master
Commit: 51a0e1270fa848cd703f2394fca4d0ef072da055
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=51a0e1270fa848cd703f2394fca4d0ef072da055

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Tue Oct 12 16:17:51 2010 +0200

ffmpegdec: Fix debug statements

---

 ext/ffmpeg/gstffmpegdec.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index 319f911..db1364c 100644
--- a/ext/ffmpeg/gstffmpegdec.c
+++ b/ext/ffmpeg/gstffmpegdec.c
@@ -2156,7 +2156,8 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec,
   if (G_UNLIKELY (ffmpegdec->context->codec == NULL))
     goto no_codec;
 
-  GST_LOG_OBJECT (ffmpegdec, "data:%p, size:%d, id:%d", data, size, dec_info);
+  GST_LOG_OBJECT (ffmpegdec, "data:%p, size:%d, id:%d", data, size,
+      dec_info->idx);
 
   *ret = GST_FLOW_OK;
   ffmpegdec->context->frame_number++;
@@ -2499,7 +2500,7 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
       "Received new data of size %u, offset:%" G_GUINT64_FORMAT ", ts:%"
       GST_TIME_FORMAT ", dur:%" GST_TIME_FORMAT ", info %d",
       GST_BUFFER_SIZE (inbuf), GST_BUFFER_OFFSET (inbuf),
-      GST_TIME_ARGS (in_timestamp), GST_TIME_ARGS (in_duration), in_info);
+      GST_TIME_ARGS (in_timestamp), GST_TIME_ARGS (in_duration), in_info->idx);
 
   /* workarounds, functions write to buffers:
    *  libavcodec/svq1.c:svq1_decode_frame writes to the given buffer.





More information about the Gstreamer-commits mailing list