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:
Edward Hervey 2014-04-16 16:25:29 +02:00
parent be859d02a6
commit 3d6265a9f5

View file

@ -1158,7 +1158,7 @@ gst_mxf_demux_update_tracks (GstMXFDemux * demux)
pad->current_component_duration = -1; pad->current_component_duration = -1;
if (track->edit_rate.n != source_track->edit_rate.n || 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 += pad->current_component_start +=
gst_util_uint64_scale (component->start_position, gst_util_uint64_scale (component->start_position,
source_track->edit_rate.n * track->edit_rate.d, 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; pad->current_component_duration = -1;
if (pad->material_track->edit_rate.n != source_track->edit_rate.n || 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 += pad->current_component_start +=
gst_util_uint64_scale (pad->current_component->start_position, gst_util_uint64_scale (pad->current_component->start_position,
source_track->edit_rate.n * pad->material_track->edit_rate.d, source_track->edit_rate.n * pad->material_track->edit_rate.d,