mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
update for bus api changes
This commit is contained in:
parent
92c04f12cc
commit
fcc1e1f457
4 changed files with 9 additions and 5 deletions
|
@ -88,7 +88,8 @@
|
||||||
* {
|
* {
|
||||||
* ...
|
* ...
|
||||||
* bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
|
* 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
|
* // set up sync handler for setting the xid once the pipeline is started
|
||||||
* bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
|
* 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_object_unref (bus);
|
||||||
* ...
|
* ...
|
||||||
* gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
* gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
|
@ -2279,7 +2279,8 @@ connect_bus_signals (PlaybackApp * app)
|
||||||
#if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_QUARTZ)
|
#if defined (GDK_WINDOWING_X11) || defined (GDK_WINDOWING_WIN32) || defined (GDK_WINDOWING_QUARTZ)
|
||||||
if (app->pipeline_type != 0) {
|
if (app->pipeline_type != 0) {
|
||||||
/* handle prepare-xwindow-id element message synchronously, but only for non-playbin */
|
/* 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
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2523,7 +2523,7 @@ connect_bus_signals (GstElement * pipeline)
|
||||||
#ifdef HAVE_X
|
#ifdef HAVE_X
|
||||||
/* handle prepare-window-handle element message synchronously */
|
/* handle prepare-window-handle element message synchronously */
|
||||||
gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler,
|
gst_bus_set_sync_handler (bus, (GstBusSyncHandler) bus_sync_handler,
|
||||||
pipeline);
|
pipeline, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gst_bus_add_signal_watch_full (bus, G_PRIORITY_HIGH);
|
gst_bus_add_signal_watch_full (bus, G_PRIORITY_HIGH);
|
||||||
|
|
|
@ -226,7 +226,8 @@ main (int argc, char **argv)
|
||||||
open_display ();
|
open_display ();
|
||||||
|
|
||||||
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
|
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);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue