Update gstreamer-player-sys GIR file for correct annotations/types

And require the 1.12 API
This commit is contained in:
Sebastian Dröge 2017-08-08 11:08:16 +03:00
parent 669b24f661
commit 252abbaeda
5 changed files with 7 additions and 20 deletions

View file

@ -2,7 +2,7 @@
girs_dir = "gir-files"
library = "GstPlayer"
version = "1.0"
min_cfg_version = "1.0"
min_cfg_version = "1.12"
target_path = "gstreamer-player-sys"
work_mode = "sys"

View file

@ -30,7 +30,7 @@ passed. See gst_player_g_main_context_signal_dispatcher_new().
Video is going to be rendered by @video_renderer, or if %NULL is provided
no special video set up will be done and some default handling will be
performed.</doc>
<return-value transfer-ownership="none">
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #GstPlayer instance</doc>
<type name="Player" c:type="GstPlayer*"/>
</return-value>
@ -522,7 +522,7 @@ Since 1.12</doc>
nullable="1"
allow-none="1">
<doc xml:space="preserve">Additional configuration</doc>
<type name="Gst.Structure" c:type="GstStructure*"/>
<type name="Gst.Structure" c:type="const GstStructure*"/>
</parameter>
</parameters>
</method>

View file

@ -16,8 +16,7 @@ path = "../gstreamer-video-sys"
version = "0.1.1"
[features]
v1_10 = []
v1_12 = ["v1_10"]
v1_12 = []
[lib]
name = "gstreamer_player_sys"

View file

@ -16,10 +16,8 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-player-1.0";
let shared_libs = ["gstplayer-1.0"];
let version = if cfg!(feature = "v1_12") {
let version = {
"1.12"
} else {
"1.0"
};
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {

View file

@ -1,10 +1,9 @@
// This file was generated by gir (f00d658) from gir-files (???)
// This file was generated by gir (3294959) from gir-files (???)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals)]
extern crate libc;
#[macro_use] extern crate bitflags;
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
extern crate gstreamer_sys as gst;
@ -184,7 +183,6 @@ extern "C" {
pub fn gst_player_get_video_streams(info: *const GstPlayerMediaInfo) -> *mut glib::GList;
pub fn gst_player_visualizations_free(viss: *mut *mut GstPlayerVisualization);
pub fn gst_player_visualizations_get() -> *mut *mut GstPlayerVisualization;
#[cfg(feature = "v1_12")]
pub fn gst_player_config_set_seek_accurate(player: *mut GstPlayer, accurate: gboolean);
pub fn gst_player_get_audio_video_offset(player: *mut GstPlayer) -> i64;
pub fn gst_player_get_color_balance(player: *mut GstPlayer, type_: GstPlayerColorBalanceType) -> c_double;
@ -195,9 +193,7 @@ extern "C" {
pub fn gst_player_get_current_visualization(player: *mut GstPlayer) -> *mut c_char;
pub fn gst_player_get_duration(player: *mut GstPlayer) -> gst::GstClockTime;
pub fn gst_player_get_media_info(player: *mut GstPlayer) -> *mut GstPlayerMediaInfo;
#[cfg(feature = "v1_10")]
pub fn gst_player_get_multiview_flags(player: *mut GstPlayer) -> gst_video::GstVideoMultiviewFlags;
#[cfg(feature = "v1_10")]
pub fn gst_player_get_multiview_mode(player: *mut GstPlayer) -> gst_video::GstVideoMultiviewMode;
pub fn gst_player_get_mute(player: *mut GstPlayer) -> gboolean;
pub fn gst_player_get_pipeline(player: *mut GstPlayer) -> *mut gst::GstElement;
@ -205,7 +201,7 @@ extern "C" {
pub fn gst_player_get_rate(player: *mut GstPlayer) -> c_double;
pub fn gst_player_get_subtitle_uri(player: *mut GstPlayer) -> *mut c_char;
pub fn gst_player_get_uri(player: *mut GstPlayer) -> *mut c_char;
pub fn gst_player_get_video_snapshot(player: *mut GstPlayer, format: GstPlayerSnapshotFormat, config: *mut gst::GstStructure) -> *mut gst::GstSample;
pub fn gst_player_get_video_snapshot(player: *mut GstPlayer, format: GstPlayerSnapshotFormat, config: *const gst::GstStructure) -> *mut gst::GstSample;
pub fn gst_player_get_volume(player: *mut GstPlayer) -> c_double;
pub fn gst_player_has_color_balance(player: *mut GstPlayer) -> gboolean;
pub fn gst_player_pause(player: *mut GstPlayer);
@ -216,9 +212,7 @@ extern "C" {
pub fn gst_player_set_audio_video_offset(player: *mut GstPlayer, offset: i64);
pub fn gst_player_set_color_balance(player: *mut GstPlayer, type_: GstPlayerColorBalanceType, value: c_double);
pub fn gst_player_set_config(player: *mut GstPlayer, config: *mut gst::GstStructure) -> gboolean;
#[cfg(feature = "v1_10")]
pub fn gst_player_set_multiview_flags(player: *mut GstPlayer, flags: gst_video::GstVideoMultiviewFlags);
#[cfg(feature = "v1_10")]
pub fn gst_player_set_multiview_mode(player: *mut GstPlayer, mode: gst_video::GstVideoMultiviewMode);
pub fn gst_player_set_mute(player: *mut GstPlayer, val: gboolean);
pub fn gst_player_set_rate(player: *mut GstPlayer, rate: c_double);
@ -257,13 +251,9 @@ extern "C" {
pub fn gst_player_media_info_get_container_format(info: *const GstPlayerMediaInfo) -> *const c_char;
pub fn gst_player_media_info_get_duration(info: *const GstPlayerMediaInfo) -> gst::GstClockTime;
pub fn gst_player_media_info_get_image_sample(info: *const GstPlayerMediaInfo) -> *mut gst::GstSample;
#[cfg(feature = "v1_12")]
pub fn gst_player_media_info_get_number_of_audio_streams(info: *const GstPlayerMediaInfo) -> c_uint;
#[cfg(feature = "v1_12")]
pub fn gst_player_media_info_get_number_of_streams(info: *const GstPlayerMediaInfo) -> c_uint;
#[cfg(feature = "v1_12")]
pub fn gst_player_media_info_get_number_of_subtitle_streams(info: *const GstPlayerMediaInfo) -> c_uint;
#[cfg(feature = "v1_12")]
pub fn gst_player_media_info_get_number_of_video_streams(info: *const GstPlayerMediaInfo) -> c_uint;
pub fn gst_player_media_info_get_stream_list(info: *const GstPlayerMediaInfo) -> *mut glib::GList;
pub fn gst_player_media_info_get_subtitle_streams(info: *const GstPlayerMediaInfo) -> *mut glib::GList;