summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-07 15:49:00 +0200
committerDave Robillard <dave@drobilla.net>2009-05-03 12:03:14 -0400
commit5885b6d1c4566d8d5c767295835f580d8fc601d9 (patch)
tree12b7bdf20d2ce5d28e4806344ab121ee8b27c0e1 /gst
parente5c8ca4ceb09c5d10c725c65c12a9e2dcd2daaaa (diff)
downloadgst-plugins-bad-5885b6d1c4566d8d5c767295835f580d8fc601d9.tar.gz
gst-plugins-bad-5885b6d1c4566d8d5c767295835f580d8fc601d9.tar.bz2
gst-plugins-bad-5885b6d1c4566d8d5c767295835f580d8fc601d9.zip
mxfdemux: Don't use invalid buffer offsets, instead assume offset == 0
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfdemux.c3
1 files changed, 2 insertions, 1 deletions
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);