From bf6838d913d79c7374552a8b1b4d61c34edf1999 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 10 Mar 2016 00:23:14 +1100 Subject: [PATCH] gl/examples/fxtest: add needed glupload to the pipeline Fixes a negotiation failure in the example --- tests/examples/gl/gtk/fxtest/fxtest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/examples/gl/gtk/fxtest/fxtest.c b/tests/examples/gl/gtk/fxtest/fxtest.c index 17860eb..c1cddea 100644 --- a/tests/examples/gl/gtk/fxtest/fxtest.c +++ b/tests/examples/gl/gtk/fxtest/fxtest.c @@ -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; } -- 2.7.4