From 8b891c218f5065f8f6f01881a6002918a5c5ad92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Mar 2019 21:24:03 +0100 Subject: [PATCH] examples/sdlshare: Bus sync handlers return no value --- tests/examples/gl/sdl/sdlshare.c | 5 +---- tests/examples/gl/sdl/sdlshare2.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/examples/gl/sdl/sdlshare.c b/tests/examples/gl/sdl/sdlshare.c index e0c49ca..18213ff 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 76e0024..325c180 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 -- 2.7.4