summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-10-18 15:52:02 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-10-18 16:16:43 +0200
commit024f1bae0c2869659635d41f3ae151f473b9c13a (patch)
tree46ad45054d2b44cd5c4f609a639e75d079710532
parent1f5ace4de17474e11486f7ac07a5d92dc8aa5ee2 (diff)
avidemux: MEMDUMP the junk blobs
It will only actually pull the junk blobs from upstream if the memdump level is activated
-rw-r--r--gst/avi/gstavidemux.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index a4ff375e..d86531c1 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -3270,6 +3270,16 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
/* Fall-through */
case GST_MAKE_FOURCC ('J', 'U', 'N', 'Q'):
case GST_MAKE_FOURCC ('J', 'U', 'N', 'K'):
+ /* Only get buffer for debugging if the memdump is needed */
+ if (gst_debug_category_get_threshold (GST_CAT_DEFAULT) >= 9) {
+ res = gst_pad_pull_range (avi->sinkpad, avi->offset, size, &buf);
+ if (res != GST_FLOW_OK) {
+ GST_DEBUG_OBJECT (avi, "couldn't read INFO chunk");
+ goto pull_range_failed;
+ }
+ GST_MEMDUMP ("Junk", GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
+ gst_buffer_unref (buf);
+ }
avi->offset += 8 + GST_ROUND_UP_2 (size);
break;
}