From: Matthew Waters Date: Wed, 9 Mar 2016 13:23:14 +0000 (+1100) Subject: gl/examples/fxtest: add needed glupload to the pipeline X-Git-Tag: 1.16.2~955^2~398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3e362a8a937070dae10e6576ec2c3aeb14ef876;p=platform%2Fupstream%2Fgst-plugins-base.git gl/examples/fxtest: add needed glupload to the pipeline Fixes a negotiation failure in the example --- 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; }