Add gst::Object as parent class of gst_player::Player

This commit is contained in:
Sebastian Dröge 2017-12-30 15:31:43 +02:00
parent 38bd880a74
commit a65016bea1
2 changed files with 6 additions and 1 deletions

View file

@ -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",

View file

@ -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(),