? core.29253
? core.29983
? core.30703
? core.31482
? core.31530
? core.31552
? log
? qtdemux-check-length.patch
Index: qtdemux.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/qtdemux/qtdemux.c,v
retrieving revision 1.119
diff -u -r1.119 qtdemux.c
--- qtdemux.c	16 Feb 2006 14:02:57 -0000	1.119
+++ qtdemux.c	17 Feb 2006 16:17:40 -0000
@@ -589,6 +589,12 @@
       ret = gst_pad_pull_range (qtdemux->sinkpad, cur_offset, length, &moov);
       if (ret != GST_FLOW_OK)
         goto beach;
+      if (length != GST_BUFFER_SIZE (moov)) {
+	GST_WARNING_OBJECT (qtdemux, "We got less than expected (received %d, wanted %d)",
+			    GST_BUFFER_SIZE (moov), length);
+	ret = GST_FLOW_ERROR;
+	goto beach;
+      }
       cur_offset += length;
       qtdemux->offset += length;
 
