slomo gst-plugins-bad: gst-plugins-bad/ gst-plugins-bad/gst/mxf/

[email protected] Wed, 17 Dec 2008 04:06:58 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-plugins-bad
Changes by:     slomo
Date:           Wed Dec 17 2008  12:06:57 UTC

Log message:
* gst/mxf/mxfdemux.c: (gst_mxf_demux_chain):
In push mode skip the run in again if we get buffers with
an offset before the run in. This can happen on seeks for example.

Modified files:
    .               : ChangeLog
    gst/mxf         : mxfdemux.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3820&r2=1.3821
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/mxf/mxfdemux.c.diff?r1=1.40&r2=1.41

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v
retrieving revision 1.3820
retrieving revision 1.3821
diff -u -d -r1.3820 -r1.3821
--- ChangeLog	16 Dec 2008 16:26:50 -0000	1.3820
+++ ChangeLog	17 Dec 2008 12:06:42 -0000	1.3821
@@ -1,3 +1,9 @@
+2008-12-17  Sebastian Dröge  <[email protected]>
+
+	* gst/mxf/mxfdemux.c: (gst_mxf_demux_chain):
+	In push mode skip the run in again if we get buffers with
+	an offset before the run in. This can happen on seeks for example.
 2008-12-16  Stefan Kost  <[email protected]>
 
 	* ext/celt/gstceltenc.c:
Index: mxfdemux.c
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mxf/mxfdemux.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- mxfdemux.c	16 Dec 2008 12:30:33 -0000	1.40
+++ mxfdemux.c	17 Dec 2008 12:06:43 -0000	1.41
@@ -554,11 +554,11 @@
   for (i = 0; i < demux->preface->content_storage->n_packages; i++) {
     if (demux->preface->content_storage->packages[i] &&
-        MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface->
-            content_storage->packages[i])) {
+        MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface->content_storage->
+            packages[i])) {
       ret =
-          MXF_METADATA_GENERIC_PACKAGE (demux->preface->
-          content_storage->packages[i]);
+          MXF_METADATA_GENERIC_PACKAGE (demux->preface->content_storage->
+          packages[i]);
       break;
     }
   }
@@ -1666,6 +1666,11 @@
         }
         gst_adapter_flush (demux->adapter, 1);
       }
+    } else if (demux->offset < demux->run_in) {
+      gst_adapter_flush (demux->adapter,
+          MIN (gst_adapter_available (demux->adapter),
+              demux->run_in - demux->offset));
+      continue;
     if (G_UNLIKELY (ret != GST_FLOW_OK))

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose