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 c71623591a
commit 1898599c42
2 changed files with 6 additions and 1 deletions

View file

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

View file

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