From 11b8d336669de702011532b7b24822636c71582d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Sep 2012 15:31:04 +0200 Subject: [PATCH] Improve debug output --- sys/androidmedia/gstamcvideodec.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index d83b19079c..2fbf6ffee5 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -782,7 +782,10 @@ retry: goto retry; } - GST_DEBUG_OBJECT (self, "Got output buffer at index %d", idx); + GST_DEBUG_OBJECT (self, + "Got output buffer at index %d: size %d time %" G_GINT64_FORMAT + " flags 0x%08x", idx, buffer_info.size, buffer_info.presentation_time_us, + buffer_info.flags); frame = _find_nearest_frame (self, @@ -1266,6 +1269,10 @@ gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder, } offset += buffer_info.size; + GST_DEBUG_OBJECT (self, + "Queueing buffer %d: size %d time %" G_GINT64_FORMAT " flags 0x%08x", + idx, buffer_info.size, buffer_info.presentation_time_us, + buffer_info.flags); if (!gst_amc_codec_queue_input_buffer (self->codec, idx, &buffer_info)) goto queue_error; }