mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Revert "title-source: Force format with alpha channels out of videotestsrc"
This reverts commit 7d1e101072
.
This commit was never meant to be committed (at least *not* on master).
This commit is contained in:
parent
c8b3e13a9c
commit
28b74c1452
1 changed files with 3 additions and 10 deletions
|
@ -231,8 +231,7 @@ ges_title_source_set_property (GObject * object,
|
|||
static GstElement *
|
||||
ges_title_source_create_source (GESTrackElement * object)
|
||||
{
|
||||
GstCaps *alphacaps;
|
||||
GstElement *topbin, *background, *text, *capsfilter;
|
||||
GstElement *topbin, *background, *text;
|
||||
GstPad *src, *pad;
|
||||
|
||||
GESTitleSource *self = GES_TITLE_SOURCE (object);
|
||||
|
@ -244,11 +243,7 @@ ges_title_source_create_source (GESTrackElement * object)
|
|||
|
||||
topbin = gst_bin_new ("titlesrc-bin");
|
||||
background = gst_element_factory_make ("videotestsrc", "titlesrc-bg");
|
||||
capsfilter = gst_element_factory_make ("capsfilter", NULL);
|
||||
|
||||
alphacaps =
|
||||
gst_caps_from_string ("video/x-raw, format={AYUV, AYUV64, ARGB, ARGB64}");
|
||||
g_object_set (capsfilter, "caps", alphacaps, NULL);
|
||||
text = gst_element_factory_make ("textoverlay", "titlsrc-text");
|
||||
if (priv->text) {
|
||||
g_object_set (text, "text", priv->text, NULL);
|
||||
|
@ -268,11 +263,9 @@ ges_title_source_create_source (GESTrackElement * object)
|
|||
g_object_set (background, "foreground-color", (guint) self->priv->background,
|
||||
NULL);
|
||||
|
||||
gst_bin_add_many (GST_BIN (topbin), background, capsfilter, text, NULL);
|
||||
gst_bin_add_many (GST_BIN (topbin), background, text, NULL);
|
||||
|
||||
gst_element_link_pads_full (background, "src", capsfilter, "sink",
|
||||
GST_PAD_LINK_CHECK_NOTHING);
|
||||
gst_element_link_pads_full (capsfilter, "src", text, "video_sink",
|
||||
gst_element_link_pads_full (background, "src", text, "video_sink",
|
||||
GST_PAD_LINK_CHECK_NOTHING);
|
||||
|
||||
pad = gst_element_get_static_pad (text, "src");
|
||||
|
|
Loading…
Reference in a new issue