mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
mxfdemux: For new essence tracks only set the position to 0 if it starts in the current partition
This commit is contained in:
parent
1ae9334355
commit
df0dd0b378
1 changed files with 6 additions and 0 deletions
|
@ -740,6 +740,12 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux)
|
||||||
tmp.track_id = track->parent.track_id;
|
tmp.track_id = track->parent.track_id;
|
||||||
memcpy (&tmp.source_package_uid, &package->parent.package_uid, 32);
|
memcpy (&tmp.source_package_uid, &package->parent.package_uid, 32);
|
||||||
|
|
||||||
|
if (demux->current_partition->partition.body_sid == edata->body_sid &&
|
||||||
|
demux->current_partition->partition.body_offset == 0)
|
||||||
|
tmp.position = 0;
|
||||||
|
else
|
||||||
|
tmp.position = -1;
|
||||||
|
|
||||||
g_array_append_val (demux->essence_tracks, tmp);
|
g_array_append_val (demux->essence_tracks, tmp);
|
||||||
etrack =
|
etrack =
|
||||||
&g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack,
|
&g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack,
|
||||||
|
|
Loading…
Reference in a new issue