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.
This commit is contained in:
Sebastian Dröge 2015-12-10 12:47:17 +02:00
parent 39aa2aaa39
commit 7ae23d13c8

View file

@ -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;