diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-09 17:48:38 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-09 17:48:38 +0100 |
commit | df0dd0b378ba3b6bc754a0f16970eeab0b144840 (patch) | |
tree | 7d172055b2861b51163c33e86645b68c2ca188a5 /gst | |
parent | 1ae9334355b8af72ba34e7e55eb39b97784fca83 (diff) | |
download | gst-plugins-bad-df0dd0b378ba3b6bc754a0f16970eeab0b144840.tar.gz gst-plugins-bad-df0dd0b378ba3b6bc754a0f16970eeab0b144840.tar.bz2 gst-plugins-bad-df0dd0b378ba3b6bc754a0f16970eeab0b144840.zip |
mxfdemux: For new essence tracks only set the position to 0 if it starts in the current partition
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mxf/mxfdemux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index c7e3804b..9704b9fe 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -740,6 +740,12 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux) tmp.track_id = track->parent.track_id; 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); etrack = &g_array_index (demux->essence_tracks, GstMXFDemuxEssenceTrack, |