mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
Add a helper function to get the number of an event type
This commit is contained in:
parent
48fc341b06
commit
4eddb6d8a3
1 changed files with 4 additions and 0 deletions
|
@ -135,6 +135,10 @@ public static Gst.EventType MakeType (uint num, Gst.EventTypeFlags flags) {
|
||||||
return (Gst.EventType) ( (num << 4) | (uint) flags);
|
return (Gst.EventType) ( (num << 4) | (uint) flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static uint GetTypeNumber (Gst.EventType type) {
|
||||||
|
return ((uint) type) >> 4;
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport ("gstreamer-0.10.dll") ]
|
[DllImport ("gstreamer-0.10.dll") ]
|
||||||
static extern IntPtr gst_event_new_custom (Gst.EventType type, IntPtr structure);
|
static extern IntPtr gst_event_new_custom (Gst.EventType type, IntPtr structure);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue