mxfdemux: For new essence tracks only set the position to 0 if it starts in the current partition

This commit is contained in:
Sebastian Dröge 2009-02-09 17:48:38 +01:00
parent 1ae9334355
commit df0dd0b378

View file

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