forked from mirrors/gstreamer-rs
Remove usage of _get_type in gstreamer-gl GLMemory
see: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1764
This commit is contained in:
parent
163130cad7
commit
389d406e73
2 changed files with 1 additions and 13 deletions
|
@ -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" }
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue