mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mxfdemux: Fix copy/paste error
We want to check whether the rate is different. We check changes in numerator *and* denominator. CID #1139631 CID #1139642
This commit is contained in:
parent
be859d02a6
commit
3d6265a9f5
1 changed files with 2 additions and 2 deletions
|
@ -1158,7 +1158,7 @@ gst_mxf_demux_update_tracks (GstMXFDemux * demux)
|
|||
pad->current_component_duration = -1;
|
||||
|
||||
if (track->edit_rate.n != source_track->edit_rate.n ||
|
||||
track->edit_rate.n != source_track->edit_rate.n) {
|
||||
track->edit_rate.d != source_track->edit_rate.d) {
|
||||
pad->current_component_start +=
|
||||
gst_util_uint64_scale (component->start_position,
|
||||
source_track->edit_rate.n * track->edit_rate.d,
|
||||
|
@ -1562,7 +1562,7 @@ gst_mxf_demux_pad_set_component (GstMXFDemux * demux, GstMXFDemuxPad * pad,
|
|||
pad->current_component_duration = -1;
|
||||
|
||||
if (pad->material_track->edit_rate.n != source_track->edit_rate.n ||
|
||||
pad->material_track->edit_rate.n != source_track->edit_rate.n) {
|
||||
pad->material_track->edit_rate.d != source_track->edit_rate.d) {
|
||||
pad->current_component_start +=
|
||||
gst_util_uint64_scale (pad->current_component->start_position,
|
||||
source_track->edit_rate.n * pad->material_track->edit_rate.d,
|
||||
|
|
Loading…
Reference in a new issue