gl/examples/fxtest: add needed glupload to the pipeline

Fixes a negotiation failure in the example
This commit is contained in:
Matthew Waters 2016-03-10 00:23:14 +11:00 committed by Tim-Philipp Müller
parent cd696a0b79
commit c3e362a8a9

View file

@ -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;
}