Gst.Message.new_element
function new_element(src:Gst.Object, structure:Gst.Structure):Gst.Message { // Gjs wrapper for gst_message_new_element() }
Create a new element-specific message. This is meant as a generic way of allowing one-way communication from an element to an application, for example "the firewire cable was unplugged". The format of the message should be documented in the element's documentation. The structure field can be NULL.
- src
The object originating the message.
- structure
The structure for the message. The message will take ownership of the structure.
- Returns
The new element message. MT safe.