From 7ae23d13c88e3650730e3be252706f21d4771bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 10 Dec 2015 12:47:17 +0200 Subject: [PATCH] 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. --- gst/mxf/mxfdemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 84cea6e140..0ca848d203 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;