From a8f32d2e4826f33fb93f941f9d8fe8ad43faef0c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 21 May 2012 12:45:00 -0400 Subject: [PATCH] videotransition: Some explanations about the invert property --- ges/ges-track-video-transition.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ges/ges-track-video-transition.c b/ges/ges-track-video-transition.c index 027eb72740..05aa78e33c 100644 --- a/ges/ges-track-video-transition.c +++ b/ges/ges-track-video-transition.c @@ -29,6 +29,10 @@ G_DEFINE_TYPE (GESTrackVideoTransition, ges_track_video_transition, GES_TYPE_TRACK_TRANSITION); +/* The description of the smpte transitions type correspond to those transition types + * being inverted, so in GES invert == !smptealpha.invert */ +#define DEFAULT_SMPTE_INVERT TRUE + static inline void ges_track_video_transition_set_border_internal (GESTrackVideoTransition * self, guint border); @@ -445,8 +449,9 @@ add_smpte_to_bin (GstPad * sink, GstElement * smptealpha, { GstPad *peer, *sinkpad; - g_object_set (smptealpha, - "type", (gint) priv->pending_type, "invert", (gboolean) TRUE, NULL); + g_object_set (smptealpha, "type", (gint) priv->pending_type, + "invert", (gboolean) DEFAULT_SMPTE_INVERT, NULL); + gst_bin_add (GST_BIN (priv->topbin), smptealpha); gst_element_sync_state_with_parent (smptealpha);