Remove usage of _get_type in gstreamer-gl GLMemory

see: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1764
This commit is contained in:
Christian Meissl 2022-02-26 16:21:29 +01:00 committed by Sebastian Dröge
parent 163130cad7
commit 389d406e73
2 changed files with 1 additions and 13 deletions

View file

@ -19,7 +19,6 @@ rust-version = "1.57"
[dependencies]
bitflags = "1.0"
byteorder = "1"
cfg-if = "1"
libc = "0.2"
once_cell = "1.0"
ffi = { package = "gstreamer-gl-sys", path = "sys" }

View file

@ -7,18 +7,7 @@ use crate::GLTextureTarget;
use ffi::{GstGLBaseMemory, GstGLMemory};
use gst::{result_from_gboolean, LoggableError, CAT_RUST};
cfg_if::cfg_if! {
if #[cfg(feature = "v1_20")] {
gst::mini_object_wrapper!(
GLMemory,
GLMemoryRef,
GstGLMemory,
ffi::gst_gl_memory_get_type
);
} else {
gst::mini_object_wrapper!(GLMemory, GLMemoryRef, GstGLMemory);
}
}
gst::mini_object_wrapper!(GLMemory, GLMemoryRef, GstGLMemory);
impl std::ops::Deref for GLMemoryRef {
type Target = GLBaseMemoryRef;