Improve debug output
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 10 Sep 2012 13:31:04 +0000 (15:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Oct 2012 14:28:39 +0000 (16:28 +0200)
sys/androidmedia/gstamcvideodec.c

index d83b190..2fbf6ff 100644 (file)
@@ -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;
   }