set black background on titles by default
authorBrandon Lewis <brandon@collabora.co.uk>
Wed, 16 Jun 2010 11:27:35 +0000 (13:27 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 9 Jul 2010 11:21:10 +0000 (13:21 +0200)
ges/ges-track-video-title-source.c

index 1f3391fbe877ed4a1a58587ce140063e96e4bbc8..2045ccd90749cc02bd4431464a440353e4d447e2 100644 (file)
@@ -26,6 +26,7 @@
 #include "ges-internal.h"
 #include "ges-track-object.h"
 #include "ges-track-video-title-source.h"
+#include "ges-track-video-background-source.h"
 
 G_DEFINE_TYPE (GESTrackVideoTitleSource, ges_track_video_title_src,
     GES_TYPE_TRACK_TITLE_SOURCE);
@@ -134,6 +135,9 @@ ges_track_video_title_src_create_element (GESTrackTitleSource * object)
     g_object_set (text, "text", self->text, NULL);
   }
 
+  g_object_set (background, "pattern", (gint) GES_TRACK_VIDEO_BG_SRC_BLACK,
+      NULL);
+
   gst_bin_add_many (GST_BIN (topbin), background, text, NULL);
 
   gst_element_link (background, text);