mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
0c76171b89
* sample/HelloWorld.cs: Cleaned up, works with new dynamic signal stuff * gstreamer-sharp.mdp: Updated MonoDevelop project * gstreamer-sharp/glue/dynamicsignal.c: * gstreamer-sharp/DynamicSignal.cs: Added DynamicSignal support for runtime GObject signal binding * gstreamer-sharp/glue/Makefile.am: * gstreamer-sharp/Makefile.am: Updated build * gstreamer-sharp/Element.custom: Removed old DynamicSignal stuff and added pass-thru/proxy Connect/Disconnect methods on top of GLib.DynamicSignal * gstreamer-sharp/DynamicSignalHandlerGenerator.cs: * gstreamer-sharp/DynamicSignalMarshalHandler.cs: Removed * gstreamer-sharp/gstreamer-sharp.dll.config.in: Updated maps, removed old 0.8 maps git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62542 e3ebcda4-bce8-0310-ba0a-eca2169e7518
54 lines
1.6 KiB
Text
54 lines
1.6 KiB
Text
|
|
public new GLib.Value GetProperty(string propertyName)
|
|
{
|
|
return base.GetProperty(propertyName);
|
|
}
|
|
|
|
public new void SetProperty(string propertyName, GLib.Value value)
|
|
{
|
|
base.SetProperty(propertyName, value);
|
|
}
|
|
|
|
public void SetProperty(string propertyName, string value)
|
|
{
|
|
GLib.Value val = new GLib.Value(value);
|
|
base.SetProperty(propertyName, val);
|
|
}
|
|
|
|
public void SetProperty(string propertyName, double value)
|
|
{
|
|
GLib.Value val = new GLib.Value(value);
|
|
base.SetProperty(propertyName, val);
|
|
}
|
|
|
|
public void SetProperty(string propertyName, bool value)
|
|
{
|
|
GLib.Value val = new GLib.Value(value);
|
|
base.SetProperty(propertyName, val);
|
|
}
|
|
|
|
[DllImport("gstreamer-0.10.dll")]
|
|
private static extern bool gst_element_query_position(IntPtr raw, ref Format format, out long cur);
|
|
|
|
public bool QueryPosition(Gst.Format format, out long current)
|
|
{
|
|
return gst_element_query_position(Handle, ref format, out current);
|
|
}
|
|
|
|
[DllImport("gstreamer-0.10.dll")]
|
|
private static extern bool gst_element_query_duration(IntPtr raw, ref Format format, out long duration);
|
|
|
|
public bool QueryDuration(Gst.Format format, out long duration)
|
|
{
|
|
return gst_element_query_duration(Handle, ref format, out duration);
|
|
}
|
|
|
|
public void Connect(string signal, GLib.DynamicSignalHandler handler)
|
|
{
|
|
GLib.DynamicSignal.Connect(this, signal, handler);
|
|
}
|
|
|
|
public void Disconnect(string signal, GLib.DynamicSignalHandler handler)
|
|
{
|
|
GLib.DynamicSignal.Disconnect(this, signal, handler);
|
|
}
|