diff --git a/tests/examples/gl/sdl/sdlshare.c b/tests/examples/gl/sdl/sdlshare.c index e0c49cac25..18213ff5b3 100644 --- a/tests/examples/gl/sdl/sdlshare.c +++ b/tests/examples/gl/sdl/sdlshare.c @@ -231,7 +231,7 @@ end_stream_cb (GstBus * bus, GstMessage * msg, GMainLoop * loop) g_main_loop_quit (loop); } -static gboolean +static void sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) { switch (GST_MESSAGE_TYPE (msg)) { @@ -248,7 +248,6 @@ sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) gst_context_set_gl_display (display_context, sdl_gl_display); gst_element_set_context (GST_ELEMENT (msg->src), display_context); gst_context_unref (display_context); - return TRUE; } else if (g_strcmp0 (context_type, "gst.gl.app_context") == 0) { GstContext *app_context = gst_context_new ("gst.gl.app_context", TRUE); GstStructure *s = gst_context_writable_structure (app_context); @@ -256,14 +255,12 @@ sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) NULL); gst_element_set_context (GST_ELEMENT (msg->src), app_context); gst_context_unref (app_context); - return TRUE; } break; } default: break; } - return FALSE; } int diff --git a/tests/examples/gl/sdl/sdlshare2.c b/tests/examples/gl/sdl/sdlshare2.c index 76e0024e70..325c18012c 100644 --- a/tests/examples/gl/sdl/sdlshare2.c +++ b/tests/examples/gl/sdl/sdlshare2.c @@ -249,7 +249,7 @@ end_stream_cb (GstBus * bus, GstMessage * msg, GMainLoop * loop) g_main_loop_quit (loop); } -static gboolean +static void sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) { switch (GST_MESSAGE_TYPE (msg)) { @@ -266,7 +266,6 @@ sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) gst_context_set_gl_display (display_context, sdl_gl_display); gst_element_set_context (GST_ELEMENT (msg->src), display_context); gst_context_unref (display_context); - return TRUE; } else if (g_strcmp0 (context_type, "gst.gl.app_context") == 0) { GstContext *app_context = gst_context_new ("gst.gl.app_context", TRUE); GstStructure *s = gst_context_writable_structure (app_context); @@ -274,14 +273,12 @@ sync_bus_call (GstBus * bus, GstMessage * msg, gpointer data) NULL); gst_element_set_context (GST_ELEMENT (msg->src), app_context); gst_context_unref (app_context); - return TRUE; } break; } default: break; } - return FALSE; } int