transition: Fix usage of transition types != crossfade
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 3 Aug 2017 21:03:31 +0000 (17:03 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 3 Aug 2017 21:04:04 +0000 (17:04 -0400)
We need to make sure the crossfade ratio is disabled in that case.

ges/ges-video-transition.c

index c4cf04c..cbe989e 100644 (file)
@@ -467,7 +467,7 @@ ges_video_transition_update_control_sources (GESVideoTransition * self,
         duration, 0.0, 0.0);
   } else {
     ges_video_transition_update_control_source
-        (priv->crossfade_control_source, duration, 1.0, 1.0);
+        (priv->crossfade_control_source, duration, -1.0, -1.0);
     ges_video_transition_update_control_source (priv->smpte_control_source,
         duration, 1.0, 0.0);
   }