summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2014-04-16 16:25:29 +0200
committerEdward Hervey <edward@collabora.com>2014-04-16 16:25:29 +0200
commit3d6265a9f51249ef0e5374a23076fa26a5358e3a (patch)
tree8488e16e7f47fecfcda5aff1d019e6d9c54f5252 /gst
parentbe859d02a6a7f3cf0877e0f320aab36b11879d23 (diff)
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
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfdemux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index 1237ac222..838665e31 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -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,