Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
4864a1e0
Commit
4864a1e0
authored
Mar 15, 2018
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build
parent
7f479b0e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
55 additions
and
12 deletions
+55
-12
Gir_Gst.toml
Gir_Gst.toml
+9
-0
gstreamer-audio/src/audio_info.rs
gstreamer-audio/src/audio_info.rs
+1
-1
gstreamer-audio/src/audio_stream_align.rs
gstreamer-audio/src/audio_stream_align.rs
+5
-2
gstreamer-audio/src/lib.rs
gstreamer-audio/src/lib.rs
+1
-0
gstreamer-net/src/net_client_clock.rs
gstreamer-net/src/net_client_clock.rs
+1
-0
gstreamer-net/src/ntp_clock.rs
gstreamer-net/src/ntp_clock.rs
+1
-0
gstreamer-net/src/ptp_clock.rs
gstreamer-net/src/ptp_clock.rs
+1
-0
gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs
gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs
+4
-1
gstreamer/src/auto/functions.rs
gstreamer/src/auto/functions.rs
+0
-8
gstreamer/src/bus.rs
gstreamer/src/bus.rs
+2
-0
gstreamer/src/lib.rs
gstreamer/src/lib.rs
+2
-0
gstreamer/src/pad_template.rs
gstreamer/src/pad_template.rs
+28
-0
No files found.
Gir_Gst.toml
View file @
4864a1e0
...
...
@@ -644,6 +644,10 @@ status = "generate"
name
=
"Gst.PadTemplate"
status
=
"generate"
trait
=
false
[[object.function]]
name
=
"new_from_static_pad_template_with_gtype"
# static pad template manual
ignore
=
true
[[object]]
name
=
"Gst.GhostPad"
...
...
@@ -1054,6 +1058,11 @@ status = "generate"
# newtype wrapper
ignore
=
true
[[object.function]]
name
=
"protection_filter_systems_by_available_decryptors"
# wrong array annotations
ignore
=
true
[[object.function]]
name
=
"debug_bin_to_dot_data"
[object.function.return]
...
...
gstreamer-audio/src/audio_info.rs
View file @
4864a1e0
...
...
@@ -75,7 +75,7 @@ impl<'a> AudioInfoBuilder<'a> {
self
.format
.to_glib
(),
self
.rate
as
i32
,
self
.channels
as
i32
,
positions_ptr
,
positions_ptr
as
*
mut
_
,
);
if
info
.finfo
.is_null
()
||
info
.rate
<=
0
||
info
.channels
<=
0
{
...
...
gstreamer-audio/src/audio_stream_align.rs
View file @
4864a1e0
...
...
@@ -7,9 +7,12 @@
// except according to those terms.
use
ffi
;
use
AudioStreamAlign
;
use
gst
;
use
glib
::
translate
::
*
;
use
std
::
mem
;
impl
AudioStreamAlign
{
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
process
(
&
mut
self
,
discont
:
bool
,
timestamp
:
gst
::
ClockTime
,
n_samples
:
u32
)
->
(
bool
,
gst
::
ClockTime
,
gst
::
ClockTime
,
u64
)
{
...
...
@@ -18,7 +21,7 @@ impl AudioStreamAlign {
let
mut
out_duration
=
mem
::
uninitialized
();
let
mut
out_sample_position
=
mem
::
uninitialized
();
let
ret
=
from_glib
(
ffi
::
gst_audio_stream_align_process
(
self
.to_glib_none_mut
()
.0
,
discont
.to_glib
(),
timestamp
.to_glib
(),
n_samples
,
&
mut
out_timestamp
,
&
mut
out_duration
,
&
mut
out_sample_position
));
(
from_glib
(
ret
)
,
from_glib
(
out_timestamp
),
from_glib
(
out_duration
),
out_sample_position
)
)
(
ret
,
from_glib
(
out_timestamp
),
from_glib
(
out_duration
),
out_sample_position
)
}
}
}
gstreamer-audio/src/lib.rs
View file @
4864a1e0
...
...
@@ -54,6 +54,7 @@ mod audio_info;
pub
use
audio_info
::
*
;
mod
audio_channel_position
;
pub
use
audio_channel_position
::
*
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
mod
audio_stream_align
;
use
glib
::
translate
::{
from_glib_full
,
ToGlibPtr
};
...
...
gstreamer-net/src/net_client_clock.rs
View file @
4864a1e0
...
...
@@ -10,6 +10,7 @@ use ffi;
use
NetClientClock
;
use
gst
;
use
glib
::
object
::
Downcast
;
use
glib
::
translate
::
*
;
impl
NetClientClock
{
...
...
gstreamer-net/src/ntp_clock.rs
View file @
4864a1e0
...
...
@@ -10,6 +10,7 @@ use ffi;
use
NtpClock
;
use
gst
;
use
glib
::
object
::
Downcast
;
use
glib
::
translate
::
*
;
impl
NtpClock
{
...
...
gstreamer-net/src/ptp_clock.rs
View file @
4864a1e0
...
...
@@ -10,6 +10,7 @@ use ffi;
use
PtpClock
;
use
gst
;
use
glib
::
object
::
Downcast
;
use
glib
::
translate
::
*
;
impl
PtpClock
{
...
...
gstreamer-rtsp-server/src/r_t_s_p_media_factory.rs
View file @
4864a1e0
...
...
@@ -8,8 +8,11 @@
use
RTSPMediaFactory
;
use
glib
::
translate
::
*
;
use
glib
::
IsA
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
gst
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
ffi
;
pub
trait
RTSPMediaFactoryExtManual
{
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
...
...
gstreamer/src/auto/functions.rs
View file @
4864a1e0
...
...
@@ -176,14 +176,6 @@ 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/bus.rs
View file @
4864a1e0
...
...
@@ -15,6 +15,8 @@ use glib::source::{CallbackGuard, Continue, Priority, SourceId};
use
glib_ffi
;
use
glib_ffi
::{
gboolean
,
gpointer
};
use
std
::
ptr
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
std
::
mem
;
#[cfg(any(all(unix,
feature
=
"v1_14"
),
feature
=
"dox"
))]
use
std
::
os
::
unix
;
...
...
gstreamer/src/lib.rs
View file @
4864a1e0
...
...
@@ -153,6 +153,8 @@ pub use clock::{ClockExtManual, ClockId};
mod
buffer_pool
;
pub
use
buffer_pool
::
*
;
mod
pad_template
;
pub
mod
functions
;
pub
use
functions
::
*
;
...
...
gstreamer/src/pad_template.rs
0 → 100644
View file @
4864a1e0
// Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
PadTemplate
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
StaticPadTemplate
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
glib
::
translate
::
*
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
ffi
;
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
use
glib
;
impl
PadTemplate
{
#[cfg(any(feature
=
"v1_14"
,
feature
=
"dox"
))]
pub
fn
new_from_static_pad_template_with_gtype
(
pad_template
:
&
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
(
mut_override
(
pad_template
.to_glib_none
()
.0
),
pad_type
.to_glib
()))
}
}
}
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