gstreamer/gstreamer-sharp/Message.custom
Khaled Mohammed 13873a6559 more tests and Dispose() in Gst.Object
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63657 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-08-11 20:53:33 +00:00

18 lines
614 B
Text

[DllImport("gstreamersharpglue-0.10")]
private extern static IntPtr gstsharp_message_parse_error(IntPtr raw);
public void ParseError(out string error)
{
IntPtr err = gstsharp_message_parse_error(Handle);
error = GLib.Marshaller.PtrToStringGFree(err);
}
[DllImport("gstreamersharpglue-0.10")]
private extern static IntPtr gstsharp_message_error_new();
public Message(Gst.Object src, string debug)
{
IntPtr error = gstsharp_message_error_new();
Raw = gst_message_new_error(src == null ? IntPtr.Zero : src.Handle, error, GLib.Marshaller.StringToPtrGStrdup(debug));
}