GNOME Bugzilla – Bug 330684
Add ability to emit sync-message without messing with the sync handler
Last modified: 2006-02-13 09:48:37 UTC
Apps that want to deal with sync-message currently have to call gst_bus_set_sync_handler (gst_bus_sync_signal_handler, NULL). Aside from being difficult for language bindings, this affects the sync handler, which some other part of the application might have set. To allow emission of sync-message, I propose two new functions, gst_bus_enable_sync_message_emission, and gst_bus_disable_sync_message_emission. Patch attached.
Created attachment 59082 [details] [review] patch adding this functionality
2006-02-10 Andy Wingo <wingo@pobox.com> * gst/gstbus.c (gst_bus_class_init): Declare our private data structure. (gst_bus_init): Cache the location of the private data in the instance structure. (gst_bus_enable_sync_message_emission) (gst_bus_disable_sync_message_emission): Implement new public functions. (gst_bus_post): Emit the sync-message signal if the user asked for it. Fixes #330684. * gst/gstbus.h (GstBus): Use a padding pointer to cache the location of the bus-private structuure. (gst_bus_enable_sync_message_emission) (gst_bus_disable_sync_message_emission): New public functions.