mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +00:00
gl/examples/fxtest: add needed glupload to the pipeline
Fixes a negotiation failure in the example
This commit is contained in:
parent
cd696a0b79
commit
c3e362a8a9
1 changed files with 4 additions and 3 deletions
|
@ -174,7 +174,7 @@ main (gint argc, gchar * argv[])
|
|||
{
|
||||
GstStateChangeReturn ret;
|
||||
GstElement *pipeline;
|
||||
GstElement *filter, *sink;
|
||||
GstElement *upload, *filter, *sink;
|
||||
GstElement *sourcebin;
|
||||
GstBus *bus;
|
||||
GError *error = NULL;
|
||||
|
@ -234,12 +234,13 @@ main (gint argc, gchar * argv[])
|
|||
|
||||
pipeline = gst_pipeline_new ("pipeline");
|
||||
|
||||
upload = gst_element_factory_make ("glupload", NULL);
|
||||
filter = gst_element_factory_make ("gleffects", "flt");
|
||||
sink = gst_element_factory_make ("glimagesink", "glsink");
|
||||
|
||||
gst_bin_add_many (GST_BIN (pipeline), sourcebin, filter, sink, NULL);
|
||||
gst_bin_add_many (GST_BIN (pipeline), sourcebin, upload, filter, sink, NULL);
|
||||
|
||||
if (!gst_element_link_many (sourcebin, filter, sink, NULL)) {
|
||||
if (!gst_element_link_many (sourcebin, upload, filter, sink, NULL)) {
|
||||
g_print ("Failed to link one or more elements!\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue