mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
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:
parent
39aa2aaa39
commit
7ae23d13c8
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue