diff options
author | Matthew Waters <matthew@centricular.com> | 2016-03-10 00:23:14 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-03-10 22:52:26 +1100 |
commit | bf6838d913d79c7374552a8b1b4d61c34edf1999 (patch) | |
tree | 244e513d26afe5339fb4c90fe4d0e821095f12e5 /tests/examples | |
parent | 5ebf1d477de44a45ce3a8e320a86cc3bf83c2a8e (diff) | |
download | gstreamer-plugins-bad-bf6838d913d79c7374552a8b1b4d61c34edf1999.tar.gz |
gl/examples/fxtest: add needed glupload to the pipeline
Fixes a negotiation failure in the example
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/gl/gtk/fxtest/fxtest.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/examples/gl/gtk/fxtest/fxtest.c b/tests/examples/gl/gtk/fxtest/fxtest.c index 17860eb62..c1cddeace 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; } |