track-video-transition: Make the invert property management coherent

This commit is contained in:
Mathieu Duponchelle 2012-05-06 18:52:25 +02:00 committed by Thibault Saunier
parent c22fa97088
commit dd55b0084b

View file

@ -695,10 +695,10 @@ ges_track_video_transition_set_inverted_internal (GESTrackVideoTransition *
GESTrackVideoTransitionPrivate *priv = self->priv; GESTrackVideoTransitionPrivate *priv = self->priv;
if (!priv->smpte) { if (!priv->smpte) {
priv->pending_inverted = inverted; priv->pending_inverted = !inverted;
return; return;
} }
g_object_set (priv->smpte, "invert", inverted, NULL); g_object_set (priv->smpte, "invert", !inverted, NULL);
} }
@ -829,7 +829,7 @@ ges_track_video_transition_is_inverted (GESTrackVideoTransition * self)
g_object_get (self->priv->smpte, "invert", &inverted, NULL); g_object_get (self->priv->smpte, "invert", &inverted, NULL);
return inverted; return !inverted;
} }
/** /**