From: Wim Taymans Date: Wed, 20 Jun 2012 10:30:36 +0000 (+0200) Subject: update for bus api changes X-Git-Tag: 1.19.3~511^2~6301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcc1e1f457061ec95a6faf65780244b1211a5912;p=platform%2Fupstream%2Fgstreamer.git update for bus api changes --- diff --git a/gst-libs/gst/video/videooverlay.c b/gst-libs/gst/video/videooverlay.c index 99e2f48..f8419fb 100644 --- a/gst-libs/gst/video/videooverlay.c +++ b/gst-libs/gst/video/videooverlay.c @@ -88,7 +88,8 @@ * { * ... * bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline); + * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline, + NULL); * ... * } * ]| @@ -229,7 +230,8 @@ * ... * // set up sync handler for setting the xid once the pipeline is started * bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, NULL); + * gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, NULL, + * NULL); * gst_object_unref (bus); * ... * gst_element_set_state (pipeline, GST_STATE_PLAYING); diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index 559168f..7a04493 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -2279,7 +2279,8 @@ connect_bus_signals (PlaybackApp * app) #if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_QUARTZ) if (app->pipeline_type != 0) { /* handle prepare-xwindow-id element message synchronously, but only for non-playbin */ - gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, app); + gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, app, + NULL); } #endif diff --git a/tests/examples/seek/jsseek.c b/tests/examples/seek/jsseek.c index 69cda4e..2c978d0 100644 --- a/tests/examples/seek/jsseek.c +++ b/tests/examples/seek/jsseek.c @@ -2523,7 +2523,7 @@ connect_bus_signals (GstElement * pipeline) #ifdef HAVE_X /* handle prepare-window-handle element message synchronously */ gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler, - pipeline); + pipeline, NULL); #endif gst_bus_add_signal_watch_full (bus, G_PRIORITY_HIGH); diff --git a/tests/icles/stress-videooverlay.c b/tests/icles/stress-videooverlay.c index b007222..dd15daa 100644 --- a/tests/icles/stress-videooverlay.c +++ b/tests/icles/stress-videooverlay.c @@ -226,7 +226,8 @@ main (int argc, char **argv) open_display (); bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline); + gst_bus_set_sync_handler (bus, (GstBusSyncHandler) create_window, pipeline, + NULL); gst_element_set_state (pipeline, GST_STATE_PLAYING);