mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
set black background on titles by default
This commit is contained in:
parent
7e7a8ff16a
commit
ac31f1ab4d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue