Gst.Message.new_error

function new_error(src:Gst.Object, error:GLib.Error, debug:String):Gst.Message {
    // Gjs wrapper for gst_message_new_error()
}

Create a new error message. The message will copy error and debug. This message is posted by element when a fatal event occured. The pipeline will probably (partially) stop. The application receiving this message should stop the pipeline.

src

The object originating the message.

error

The GError for this message.

debug

A debugging string.

Returns

the new error message. MT safe.