mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
|
//
|
||
|
// Element.custom
|
||
|
//
|
||
|
// This code is inserted after the automatically generated code.
|
||
|
//
|
||
|
|
||
|
public new GLib.Value GetProperty (string property_name) {
|
||
|
return base.GetProperty (property_name);
|
||
|
}
|
||
|
|
||
|
public new void SetProperty (string property_name, GLib.Value value) {
|
||
|
base.SetProperty (property_name, value);
|
||
|
}
|
||
|
|
||
|
public void SetProperty (string property_name, string value) {
|
||
|
GLib.Value val = new GLib.Value (value);
|
||
|
base.SetProperty (property_name, val);
|
||
|
}
|
||
|
|
||
|
public void SetProperty (string property_name, double value) {
|
||
|
GLib.Value val = new GLib.Value (value);
|
||
|
base.SetProperty (property_name, val);
|
||
|
}
|
||
|
|
||
|
public void SetProperty (string property_name, bool value) {
|
||
|
GLib.Value val = new GLib.Value (value);
|
||
|
base.SetProperty (property_name, val);
|
||
|
}
|
||
|
|
||
|
[DllImport("gstreamer-0.10.dll")]
|
||
|
static extern bool gst_element_query_position(IntPtr raw, ref Format format, out long cur);
|
||
|
|
||
|
public bool QueryPosition(Gst.Format format, out long cur) {
|
||
|
return gst_element_query_position(Handle, ref format, out cur);
|
||
|
}
|
||
|
|
||
|
[DllImport("gstreamer-0.10.dll")]
|
||
|
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);
|
||
|
}
|