forked from mirrors/gstreamer-rs
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 = [
|
external_libraries = [
|
||||||
"GLib",
|
"GLib",
|
||||||
"GObject",
|
"GObject",
|
||||||
|
"Gst",
|
||||||
]
|
]
|
||||||
|
|
||||||
generate = [
|
generate = [
|
||||||
|
@ -27,6 +28,7 @@ manual = [
|
||||||
"GLib.Error",
|
"GLib.Error",
|
||||||
"GLib.MainContext",
|
"GLib.MainContext",
|
||||||
"GObject.Object",
|
"GObject.Object",
|
||||||
|
"Gst.Object",
|
||||||
"Gst.Element",
|
"Gst.Element",
|
||||||
"GstVideo.VideoMultiviewFlags",
|
"GstVideo.VideoMultiviewFlags",
|
||||||
"GstVideo.VideoMultiviewFramePacking",
|
"GstVideo.VideoMultiviewFramePacking",
|
||||||
|
|
|
@ -20,6 +20,7 @@ use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
use gst;
|
use gst;
|
||||||
|
use gst_ffi;
|
||||||
use gst_video;
|
use gst_video;
|
||||||
use libc;
|
use libc;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
|
@ -28,7 +29,9 @@ use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib_wrapper! {
|
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 {
|
match fn {
|
||||||
get_type => || ffi::gst_player_get_type(),
|
get_type => || ffi::gst_player_get_type(),
|
||||||
|
|
Loading…
Reference in a new issue