gstreamer/gstreamer-sharp/BitReader.custom
Sebastian Dröge 28e879b517 Make sure that the Bit/BitReader buffer is not GC'd before we stop using it
Also add a property to get the used buffer.
2009-10-03 09:12:01 +02:00

15 lines
392 B
Text

Gst.Buffer buffer = null;
public Gst.Buffer Buffer {
get {
return buffer;
}
}
[DllImport ("libgstbase-0.10.dll", CallingConvention = CallingConvention.Cdecl) ]
static extern IntPtr gst_bit_reader_new_from_buffer (IntPtr buffer);
public BitReader (Gst.Buffer buffer) {
Raw = gst_bit_reader_new_from_buffer (buffer == null ? IntPtr.Zero : buffer.Handle);
this.buffer = buffer;
}