summaryrefslogtreecommitdiff
path: root/gst/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-12-10 12:47:17 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-12-10 12:47:17 +0200
commit7ae23d13c88e3650730e3be252706f21d4771bea (patch)
tree8e9b31b4b8e9646b955d9d03dd6f54ae4f6a569b /gst/mxf
parent39aa2aaa396b60a9f44bb11e8f1152e1a43f633b (diff)
downloadgstreamer-plugins-bad-7ae23d13c88e3650730e3be252706f21d4771bea.tar.gz
mxfdemux: Only pre-set position for exactly the same essence track
The edit rate is only supposed to be the same in a source package, but there might be multiple source packages with the same essence container. As such just comparing the body/index SID is not sufficient.
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfdemux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index 84cea6e14..0ca848d20 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -2762,8 +2762,7 @@ from_index:
GstMXFDemuxEssenceTrack *t =
&g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack, i);
- if (index_start_position != -1 && t->body_sid == etrack->body_sid
- && t->index_sid == etrack->index_sid)
+ if (index_start_position != -1 && t == etrack)
t->position = index_start_position;
else
t->position = (demux->offset == demux->run_in) ? 0 : -1;