mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
gl/examples/fxtest: add needed glupload to the pipeline
Fixes a negotiation failure in the example
This commit is contained in:
parent
5ebf1d477d
commit
bf6838d913
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