set black background on titles by default

This commit is contained in:
Brandon Lewis 2010-06-16 13:27:35 +02:00 committed by Edward Hervey
parent 7e7a8ff16a
commit ac31f1ab4d

View file

@ -26,6 +26,7 @@
#include "ges-internal.h" #include "ges-internal.h"
#include "ges-track-object.h" #include "ges-track-object.h"
#include "ges-track-video-title-source.h" #include "ges-track-video-title-source.h"
#include "ges-track-video-background-source.h"
G_DEFINE_TYPE (GESTrackVideoTitleSource, ges_track_video_title_src, G_DEFINE_TYPE (GESTrackVideoTitleSource, ges_track_video_title_src,
GES_TYPE_TRACK_TITLE_SOURCE); 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 (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_bin_add_many (GST_BIN (topbin), background, text, NULL);
gst_element_link (background, text); gst_element_link (background, text);