From 5885b6d1c4566d8d5c767295835f580d8fc601d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 7 Apr 2009 15:49:00 +0200 Subject: mxfdemux: Don't use invalid buffer offsets, instead assume offset == 0 --- gst/mxf/mxfdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index b3af7919..6d7ca034 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -2844,7 +2844,8 @@ gst_mxf_demux_chain (GstPad * pad, GstBuffer * inbuf) if (G_UNLIKELY (demux->offset == 0 && GST_BUFFER_OFFSET (inbuf) != 0)) { GST_DEBUG_OBJECT (demux, "offset was zero, synchronizing with buffer's"); - demux->offset = GST_BUFFER_OFFSET (inbuf); + if (GST_BUFFER_OFFSET_IS_VALID (inbuf)) + demux->offset = GST_BUFFER_OFFSET (inbuf); gst_mxf_demux_set_partition_for_offset (demux, demux->offset); } else if (demux->current_partition == NULL) { gst_mxf_demux_set_partition_for_offset (demux, demux->offset); -- cgit v1.2.1