Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer-rs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GStreamer
gstreamer-rs
Commits
1abe9cbe
Commit
1abe9cbe
authored
Mar 15, 2018
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gstreamer
parent
6bd63ec8
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
236 additions
and
37 deletions
+236
-37
Gir_Gst.toml
Gir_Gst.toml
+43
-0
gstreamer/Cargo.toml
gstreamer/Cargo.toml
+1
-0
gstreamer/src/auto/alias.rs
gstreamer/src/auto/alias.rs
+1
-1
gstreamer/src/auto/bin.rs
gstreamer/src/auto/bin.rs
+1
-1
gstreamer/src/auto/buffer_pool.rs
gstreamer/src/auto/buffer_pool.rs
+1
-1
gstreamer/src/auto/bus.rs
gstreamer/src/auto/bus.rs
+6
-1
gstreamer/src/auto/child_proxy.rs
gstreamer/src/auto/child_proxy.rs
+1
-1
gstreamer/src/auto/clock.rs
gstreamer/src/auto/clock.rs
+1
-1
gstreamer/src/auto/date_time.rs
gstreamer/src/auto/date_time.rs
+1
-1
gstreamer/src/auto/device.rs
gstreamer/src/auto/device.rs
+1
-1
gstreamer/src/auto/device_monitor.rs
gstreamer/src/auto/device_monitor.rs
+1
-1
gstreamer/src/auto/device_provider.rs
gstreamer/src/auto/device_provider.rs
+1
-1
gstreamer/src/auto/device_provider_factory.rs
gstreamer/src/auto/device_provider_factory.rs
+1
-1
gstreamer/src/auto/element.rs
gstreamer/src/auto/element.rs
+25
-1
gstreamer/src/auto/element_factory.rs
gstreamer/src/auto/element_factory.rs
+1
-1
gstreamer/src/auto/enums.rs
gstreamer/src/auto/enums.rs
+13
-1
gstreamer/src/auto/flags.rs
gstreamer/src/auto/flags.rs
+3
-1
gstreamer/src/auto/functions.rs
gstreamer/src/auto/functions.rs
+41
-1
gstreamer/src/auto/ghost_pad.rs
gstreamer/src/auto/ghost_pad.rs
+1
-1
gstreamer/src/auto/mod.rs
gstreamer/src/auto/mod.rs
+1
-1
gstreamer/src/auto/object.rs
gstreamer/src/auto/object.rs
+1
-1
gstreamer/src/auto/pad.rs
gstreamer/src/auto/pad.rs
+1
-1
gstreamer/src/auto/pad_template.rs
gstreamer/src/auto/pad_template.rs
+46
-1
gstreamer/src/auto/pipeline.rs
gstreamer/src/auto/pipeline.rs
+1
-1
gstreamer/src/auto/plugin.rs
gstreamer/src/auto/plugin.rs
+1
-1
gstreamer/src/auto/plugin_feature.rs
gstreamer/src/auto/plugin_feature.rs
+1
-1
gstreamer/src/auto/preset.rs
gstreamer/src/auto/preset.rs
+5
-4
gstreamer/src/auto/proxy_pad.rs
gstreamer/src/auto/proxy_pad.rs
+1
-1
gstreamer/src/auto/registry.rs
gstreamer/src/auto/registry.rs
+1
-1
gstreamer/src/auto/stream.rs
gstreamer/src/auto/stream.rs
+1
-1
gstreamer/src/auto/stream_collection.rs
gstreamer/src/auto/stream_collection.rs
+1
-1
gstreamer/src/auto/system_clock.rs
gstreamer/src/auto/system_clock.rs
+1
-1
gstreamer/src/auto/tag_setter.rs
gstreamer/src/auto/tag_setter.rs
+1
-1
gstreamer/src/auto/toc_setter.rs
gstreamer/src/auto/toc_setter.rs
+1
-1
gstreamer/src/auto/type_find_factory.rs
gstreamer/src/auto/type_find_factory.rs
+1
-1
gstreamer/src/auto/u_r_i_handler.rs
gstreamer/src/auto/u_r_i_handler.rs
+1
-1
gstreamer/src/bus.rs
gstreamer/src/bus.rs
+26
-0
No files found.
Gir_Gst.toml
View file @
1abe9cbe
...
...
@@ -251,6 +251,12 @@ status = "generate"
[[object]]
name
=
"Gst.Element"
status
=
"generate"
[[object.function]]
name
=
"make_from_uri"
[object.function.return]
# It is already a Result
nullable
=
false
[[object.function]]
name
=
"add_pad"
[object.function.return]
...
...
@@ -376,6 +382,21 @@ status = "generate"
# Wrong place
ignore
=
true
[[object.function]]
name
=
"get_metadata"
# better manual function
ignore
=
true
[[object.function]]
name
=
"get_pad_template"
# better manual function
ignore
=
true
[[object.function]]
name
=
"get_pad_template_list"
# better manual function
ignore
=
true
[[object]]
name
=
"Gst.ElementFactory"
status
=
"generate"
...
...
@@ -404,6 +425,11 @@ status = "generate"
[object.function.return]
bool_return_is_error
=
"Failed to start"
[[object.function]]
name
=
"get_metadata"
# better manual function
ignore
=
true
[[object]]
name
=
"Gst.DeviceMonitor"
status
=
"generate"
...
...
@@ -847,6 +873,11 @@ status = "generate"
name
=
"util_dump_mem"
ignore
=
true
[[object.function]]
name
=
"util_dump_buffer"
# We have our Debug impl on buffers
ignore
=
true
[[object.function]]
name
=
"protection_select_system"
# unsupported array type
...
...
@@ -1038,6 +1069,18 @@ status = "generate"
[object.function.return]
nullable
=
false
[[object.function]]
name
=
"parse_launch"
[object.function.return]
# Already a Result
nullable
=
false
[[object.function]]
name
=
"parse_launchv"
[object.function.return]
# Already a Result
nullable
=
false
[[object]]
name
=
"Gst.StateChangeReturn"
status
=
"generate"
...
...
gstreamer/Cargo.toml
View file @
1abe9cbe
...
...
@@ -31,6 +31,7 @@ optional = true
[features]
v1_10
=
["gstreamer-sys/v1_10"]
v1_12
=
[
"gstreamer-sys/v1_12"
,
"v1_10"
]
v1_14
=
[
"gstreamer-sys/v1_14"
,
"v1_12"
]
embed-lgpl-docs
=
["rustdoc-stripper"]
purge-lgpl-docs
=
["rustdoc-stripper"]
dox
=
[
"gstreamer-sys/dox"
,
"glib/dox"
,
"futures"
]
...
...
gstreamer/src/auto/alias.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/bin.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/buffer_pool.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/bus.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -63,6 +63,11 @@ impl Bus {
}
}
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//pub fn get_pollfd(&self, fd: /*Ignored*/&mut glib::PollFD) {
// unsafe { TODO: call ffi::gst_bus_get_pollfd() }
//}
pub
fn
have_pending
(
&
self
)
->
bool
{
unsafe
{
from_glib
(
ffi
::
gst_bus_have_pending
(
self
.to_glib_none
()
.0
))
...
...
gstreamer/src/auto/child_proxy.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/clock.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/date_time.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/device.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/device_monitor.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/device_provider.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/device_provider_factory.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/element.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -80,6 +80,15 @@ pub trait ElementExt {
fn
create_all_pads
(
&
self
);
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool;
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_sink_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool;
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_src_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool;
fn
get_base_time
(
&
self
)
->
ClockTime
;
fn
get_bus
(
&
self
)
->
Option
<
Bus
>
;
...
...
@@ -208,6 +217,21 @@ impl<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
}
}
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool {
// unsafe { TODO: call ffi::gst_element_foreach_pad() }
//}
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_sink_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool {
// unsafe { TODO: call ffi::gst_element_foreach_sink_pad() }
//}
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//fn foreach_src_pad<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementForeachPadFunc, user_data: P) -> bool {
// unsafe { TODO: call ffi::gst_element_foreach_src_pad() }
//}
fn
get_base_time
(
&
self
)
->
ClockTime
{
unsafe
{
from_glib
(
ffi
::
gst_element_get_base_time
(
self
.to_glib_none
()
.0
))
...
...
gstreamer/src/auto/element_factory.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/enums.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -1895,6 +1895,10 @@ pub enum StateChange {
PlayingToPaused
,
PausedToReady
,
ReadyToNull
,
NullToNull
,
ReadyToReady
,
PausedToPaused
,
PlayingToPlaying
,
#[doc(hidden)]
__
Unknown
(
i32
),
}
...
...
@@ -1911,6 +1915,10 @@ impl ToGlib for StateChange {
StateChange
::
PlayingToPaused
=>
ffi
::
GST_STATE_CHANGE_PLAYING_TO_PAUSED
,
StateChange
::
PausedToReady
=>
ffi
::
GST_STATE_CHANGE_PAUSED_TO_READY
,
StateChange
::
ReadyToNull
=>
ffi
::
GST_STATE_CHANGE_READY_TO_NULL
,
StateChange
::
NullToNull
=>
ffi
::
GST_STATE_CHANGE_NULL_TO_NULL
,
StateChange
::
ReadyToReady
=>
ffi
::
GST_STATE_CHANGE_READY_TO_READY
,
StateChange
::
PausedToPaused
=>
ffi
::
GST_STATE_CHANGE_PAUSED_TO_PAUSED
,
StateChange
::
PlayingToPlaying
=>
ffi
::
GST_STATE_CHANGE_PLAYING_TO_PLAYING
,
StateChange
::
__
Unknown
(
value
)
=>
value
}
}
...
...
@@ -1927,6 +1935,10 @@ impl FromGlib<ffi::GstStateChange> for StateChange {
35
=>
StateChange
::
PlayingToPaused
,
26
=>
StateChange
::
PausedToReady
,
17
=>
StateChange
::
ReadyToNull
,
9
=>
StateChange
::
NullToNull
,
18
=>
StateChange
::
ReadyToReady
,
27
=>
StateChange
::
PausedToPaused
,
36
=>
StateChange
::
PlayingToPlaying
,
value
=>
StateChange
::
__
Unknown
(
value
),
}
}
...
...
gstreamer/src/auto/flags.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -79,6 +79,7 @@ bitflags! {
const
DELTA_UNIT
=
8192
;
const
TAG_MEMORY
=
16384
;
const
SYNC_AFTER
=
32768
;
const
NON_DROPPABLE
=
65536
;
const
LAST
=
1048576
;
}
}
...
...
@@ -522,6 +523,7 @@ bitflags! {
const
PATHS_ARE_DEFAULT_ONLY
=
2
;
const
FILE_NAME_IS_SUFFIX
=
4
;
const
FILE_NAME_IS_PREFIX
=
8
;
const
PATHS_ARE_RELATIVE_TO_EXE
=
16
;
}
}
...
...
gstreamer/src/auto/functions.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -18,6 +18,14 @@ use std::mem;
use
std
::
ptr
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
debug_add_ring_buffer_logger
(
max_size_per_thread
:
u32
,
thread_timeout
:
u32
)
{
assert_initialized_main_thread!
();
unsafe
{
ffi
::
gst_debug_add_ring_buffer_logger
(
max_size_per_thread
,
thread_timeout
);
}
}
pub
fn
debug_bin_to_dot_data
<
P
:
IsA
<
Bin
>>
(
bin
:
&
P
,
details
:
DebugGraphDetails
)
->
String
{
skip_assert_initialized!
();
unsafe
{
...
...
@@ -75,6 +83,22 @@ pub fn debug_print_stack_trace() {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
debug_remove_ring_buffer_logger
()
{
assert_initialized_main_thread!
();
unsafe
{
ffi
::
gst_debug_remove_ring_buffer_logger
();
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
debug_ring_buffer_logger_get_logs
()
->
Vec
<
String
>
{
assert_initialized_main_thread!
();
unsafe
{
FromGlibPtrContainer
::
from_glib_full
(
ffi
::
gst_debug_ring_buffer_logger_get_logs
())
}
}
pub
fn
debug_set_active
(
active
:
bool
)
{
assert_initialized_main_thread!
();
unsafe
{
...
...
@@ -117,6 +141,14 @@ pub fn debug_unset_threshold_for_name(name: &str) {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
get_main_executable_path
()
->
Option
<
String
>
{
assert_initialized_main_thread!
();
unsafe
{
from_glib_none
(
ffi
::
gst_get_main_executable_path
())
}
}
pub
fn
parse_bin_from_description
(
bin_description
:
&
str
,
ghost_unlinked_pads
:
bool
)
->
Result
<
Bin
,
Error
>
{
assert_initialized_main_thread!
();
unsafe
{
...
...
@@ -144,6 +176,14 @@ pub fn parse_launchv(argv: &[&str]) -> Result<Element, Error> {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
protection_filter_systems_by_available_decryptors
(
system_identifiers
:
&
str
)
->
Vec
<
String
>
{
assert_initialized_main_thread!
();
unsafe
{
FromGlibPtrContainer
::
from_glib_full
(
ffi
::
gst_protection_filter_systems_by_available_decryptors
(
system_identifiers
.to_glib_none
()
.0
))
}
}
pub
fn
update_registry
()
->
bool
{
assert_initialized_main_thread!
();
unsafe
{
...
...
gstreamer/src/auto/ghost_pad.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/mod.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/object.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/pad.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/pad_template.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -7,7 +7,11 @@ use Object;
use
Pad
;
use
PadDirection
;
use
PadPresence
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
StaticPadTemplate
;
use
ffi
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
glib
;
use
glib
::
StaticType
;
use
glib
::
Value
;
use
glib
::
object
::
IsA
;
...
...
@@ -37,6 +41,22 @@ impl PadTemplate {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
new_from_static_pad_template_with_gtype
(
pad_template
:
&
mut
StaticPadTemplate
,
pad_type
:
glib
::
types
::
Type
)
->
PadTemplate
{
assert_initialized_main_thread!
();
unsafe
{
from_glib_none
(
ffi
::
gst_pad_template_new_from_static_pad_template_with_gtype
(
pad_template
.to_glib_none_mut
()
.0
,
pad_type
.to_glib
()))
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
new_with_gtype
(
name_template
:
&
str
,
direction
:
PadDirection
,
presence
:
PadPresence
,
caps
:
&
Caps
,
pad_type
:
glib
::
types
::
Type
)
->
PadTemplate
{
assert_initialized_main_thread!
();
unsafe
{
from_glib_none
(
ffi
::
gst_pad_template_new_with_gtype
(
name_template
.to_glib_none
()
.0
,
direction
.to_glib
(),
presence
.to_glib
(),
caps
.to_glib_none
()
.0
,
pad_type
.to_glib
()))
}
}
pub
fn
get_caps
(
&
self
)
->
Option
<
Caps
>
{
unsafe
{
from_glib_full
(
ffi
::
gst_pad_template_get_caps
(
self
.to_glib_none
()
.0
))
...
...
@@ -57,6 +77,15 @@ impl PadTemplate {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
get_property_gtype
(
&
self
)
->
glib
::
types
::
Type
{
unsafe
{
let
mut
value
=
Value
::
from_type
(
<
glib
::
types
::
Type
as
StaticType
>
::
static_type
());
gobject_ffi
::
g_object_get_property
(
self
.to_glib_none
()
.0
,
"gtype"
.to_glib_none
()
.0
,
value
.to_glib_none_mut
()
.0
);
value
.get
()
.unwrap
()
}
}
pub
fn
get_property_name_template
(
&
self
)
->
Option
<
String
>
{
unsafe
{
let
mut
value
=
Value
::
from_type
(
<
String
as
StaticType
>
::
static_type
());
...
...
@@ -97,6 +126,15 @@ impl PadTemplate {
}
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
connect_property_gtype_notify
<
F
:
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
>
(
&
self
,
f
:
F
)
->
SignalHandlerId
{
unsafe
{
let
f
:
Box_
<
Box_
<
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
>>
=
Box_
::
new
(
Box_
::
new
(
f
));
connect
(
self
.to_glib_none
()
.0
,
"notify::gtype"
,
transmute
(
notify_gtype_trampoline
as
usize
),
Box_
::
into_raw
(
f
)
as
*
mut
_
)
}
}
pub
fn
connect_property_name_template_notify
<
F
:
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
>
(
&
self
,
f
:
F
)
->
SignalHandlerId
{
unsafe
{
let
f
:
Box_
<
Box_
<
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
>>
=
Box_
::
new
(
Box_
::
new
(
f
));
...
...
@@ -135,6 +173,13 @@ unsafe extern "C" fn notify_direction_trampoline(this: *mut ffi::GstPadTemplate,
f
(
&
from_glib_borrow
(
this
))
}
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
unsafe
extern
"C"
fn
notify_gtype_trampoline
(
this
:
*
mut
ffi
::
GstPadTemplate
,
_
param_spec
:
glib_ffi
::
gpointer
,
f
:
glib_ffi
::
gpointer
)
{
callback_guard!
();
let
f
:
&&
(
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
)
=
transmute
(
f
);
f
(
&
from_glib_borrow
(
this
))
}
unsafe
extern
"C"
fn
notify_name_template_trampoline
(
this
:
*
mut
ffi
::
GstPadTemplate
,
_
param_spec
:
glib_ffi
::
gpointer
,
f
:
glib_ffi
::
gpointer
)
{
callback_guard!
();
let
f
:
&&
(
Fn
(
&
PadTemplate
)
+
Send
+
Sync
+
'static
)
=
transmute
(
f
);
...
...
gstreamer/src/auto/pipeline.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/plugin.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/plugin_feature.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/preset.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
@@ -8,6 +8,7 @@ use glib::object::IsA;
use
glib
::
translate
::
*
;
use
glib_ffi
;
use
gobject_ffi
;
use
std
;
use
std
::
mem
;
use
std
::
ptr
;
...
...
@@ -20,17 +21,17 @@ glib_wrapper! {
}
impl
Preset
{
pub
fn
get_app_dir
()
->
Option
<
String
>
{
pub
fn
get_app_dir
()
->
Option
<
std
::
path
::
PathBuf
>
{
assert_initialized_main_thread!
();
unsafe
{
from_glib_none
(
ffi
::
gst_preset_get_app_dir
())
}
}
pub
fn
set_app_dir
(
app_dir
:
&
str
)
->
Result
<
(),
glib
::
error
::
BoolError
>
{
pub
fn
set_app_dir
<
P
:
AsRef
<
std
::
path
::
Path
>>
(
app_dir
:
P
)
->
Result
<
(),
glib
::
error
::
BoolError
>
{
assert_initialized_main_thread!
();
unsafe
{
glib
::
error
::
BoolError
::
from_glib
(
ffi
::
gst_preset_set_app_dir
(
app_dir
.to_glib_none
()
.0
),
"Failed to set app preset directory"
)
glib
::
error
::
BoolError
::
from_glib
(
ffi
::
gst_preset_set_app_dir
(
app_dir
.
as_ref
()
.
to_glib_none
()
.0
),
"Failed to set app preset directory"
)
}
}
}
...
...
gstreamer/src/auto/proxy_pad.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/registry.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/stream.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/stream_collection.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/system_clock.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/tag_setter.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/toc_setter.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/type_find_factory.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/auto/u_r_i_handler.rs
View file @
1abe9cbe
// This file was generated by gir (https://github.com/gtk-rs/gir @
fbb95f4
)
// This file was generated by gir (https://github.com/gtk-rs/gir @
d1e0127
)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT
...
...
gstreamer/src/bus.rs
View file @
1abe9cbe
...
...
@@ -16,6 +16,12 @@ use glib_ffi;
use
glib_ffi
::{
gboolean
,
gpointer
};
use
std
::
ptr
;
#[cfg(any(all(unix,
feature
=
"v1_14"
),
feature
=
"dox"
))]
use
std
::
os
::
unix
;
#[cfg(any(all(not(unix),
feature
=
"v1_14"
),
feature
=
"dox"
))]
use
std
::
os
::
windows
;
use
Bus
;
use
BusSyncReply
;
use
Message
;
...
...
@@ -138,6 +144,26 @@ impl Bus {
pub
fn
unset_sync_handler
(
&
self
)
{
unsafe
{
ffi
::
gst_bus_set_sync_handler
(
self
.to_glib_none
()
.0
,
None
,
ptr
::
null_mut
(),
None
)
}
}
#[cfg(any(all(unix,
feature
=
"v1_14"
),
feature
=
"dox"
))]
pub
fn
get_pollfd
(
&
self
)
->
unix
::
io
::
RawFd
{
unsafe
{
let
mut
pollfd
:
glib_ffi
::
GPollFD
=
mem
::
zeroed
();
ffi
::
gst_bus_get_pollfd
(
self
.to_glib_none
()
.0
,
&
mut
pollfd
);
pollfd
.fd
}
}
#[cfg(any(all(not(unix),
feature
=
"v1_14"
),
feature
=
"dox"
))]
pub
fn
get_pollfd
(
&
self
)
->
windows
::
io
::
RawHandle
{
unsafe
{
let
mut
pollfd
:
glib_ffi
::
GPollFD
=
mem
::
zeroed
();
ffi
::
gst_bus_get_pollfd
(
self
.to_glib_none
()
.0
,
&
mut
pollfd
);
pollfd
.fd
as
*
mut
_
}
}
}
#[cfg(any(feature
=
"futures"
,
feature
=
"dox"
))]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment