mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
Add gst::Object as parent class of gst_player::Player
This commit is contained in:
parent
c71623591a
commit
1898599c42
2 changed files with 6 additions and 1 deletions
|
@ -11,6 +11,7 @@ generate_safety_asserts = true
|
|||
external_libraries = [
|
||||
"GLib",
|
||||
"GObject",
|
||||
"Gst",
|
||||
]
|
||||
|
||||
generate = [
|
||||
|
@ -27,6 +28,7 @@ manual = [
|
|||
"GLib.Error",
|
||||
"GLib.MainContext",
|
||||
"GObject.Object",
|
||||
"Gst.Object",
|
||||
"Gst.Element",
|
||||
"GstVideo.VideoMultiviewFlags",
|
||||
"GstVideo.VideoMultiviewFramePacking",
|
||||
|
|
|
@ -20,6 +20,7 @@ use glib::translate::*;
|
|||
use glib_ffi;
|
||||
use gobject_ffi;
|
||||
use gst;
|
||||
use gst_ffi;
|
||||
use gst_video;
|
||||
use libc;
|
||||
use std::boxed::Box as Box_;
|
||||
|
@ -28,7 +29,9 @@ use std::mem::transmute;
|
|||
use std::ptr;
|
||||
|
||||
glib_wrapper! {
|
||||
pub struct Player(Object<ffi::GstPlayer, ffi::GstPlayerClass>);
|
||||
pub struct Player(Object<ffi::GstPlayer, ffi::GstPlayerClass>): [
|
||||
gst::Object => gst_ffi::GstObject,
|
||||
];
|
||||
|
||||
match fn {
|
||||
get_type => || ffi::gst_player_get_type(),
|
||||
|
|
Loading…
Reference in a new issue