Gst.Bus.prototype.enable_sync_message_emission

function enable_sync_message_emission():void {
    // Gjs wrapper for gst_bus_enable_sync_message_emission()
}

Instructs GStreamer to emit the "sync-message" signal after running the bus's sync handler. This function is here so that code can ensure that they can synchronously receive messages without having to affect what the bin's sync handler is.

This function may be called multiple times. To clean up, the caller is responsible for calling Gst.Bus.prototype.disable_sync_message_emission as many times as this function is called.

While this function looks similar to Gst.Bus.prototype.add_signal_watch, it is not exactly the same -- this function enables <emphasis>synchronous</emphasis> emission of signals when messages arrive; Gst.Bus.prototype.add_signal_watch adds an idle callback to pop messages off the bus <emphasis>asynchronously</emphasis>. The sync-message signal comes from the thread of whatever object posted the message; the "message" signal is marshalled to the main thread via the main loop.

MT safe.