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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
0947c8f0
Commit
0947c8f0
authored
Oct 28, 2018
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename gst::Bin traits from BinExt to GstBinExt to prevent conflicts with gtk::Bin
parent
ff6b09d3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
8 deletions
+14
-8
Gir_Gst.toml
Gir_Gst.toml
+1
-0
README.md
README.md
+5
-0
gstreamer/src/auto/bin.rs
gstreamer/src/auto/bin.rs
+2
-2
gstreamer/src/auto/mod.rs
gstreamer/src/auto/mod.rs
+2
-2
gstreamer/src/bin.rs
gstreamer/src/bin.rs
+2
-2
gstreamer/src/lib.rs
gstreamer/src/lib.rs
+2
-2
No files found.
Gir_Gst.toml
View file @
0947c8f0
...
...
@@ -84,6 +84,7 @@ conversion_type = "scalar"
[[object]]
name
=
"Gst.Bin"
status
=
"generate"
trait_name
=
"GstBinExt"
[[object.function]]
name
=
"add"
[object.function.return]
...
...
README.md
View file @
0947c8f0
...
...
@@ -83,8 +83,13 @@ Homebrew only installs various plugins if explicitly enabled, so some extra
```
$ brew install gstreamer gst-plugins-base gst-plugins-good \
gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server \
<<<<<<< HEAD
--with-orc --with-libogg --with-opus --with-pango --with-theora \
--with-libvorbis --with-libvpx --enable-gtk3
=======
--with-orc -with-libogg --with-opus --with-pango --with-theora \
--with-libvorbis --with-libvpx
>>>>>>> Add libvpx to brew install
```
If you wish to install the gstreamer-player sub-crate, make sure the
...
...
gstreamer/src/auto/bin.rs
View file @
0947c8f0
...
...
@@ -47,7 +47,7 @@ impl Bin {
unsafe
impl
Send
for
Bin
{}
unsafe
impl
Sync
for
Bin
{}
pub
trait
BinExt
{
pub
trait
Gst
BinExt
{
fn
add
<
P
:
IsA
<
Element
>>
(
&
self
,
element
:
&
P
)
->
Result
<
(),
glib
::
error
::
BoolError
>
;
//fn add_many<P: IsA<Element>>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs);
...
...
@@ -111,7 +111,7 @@ pub trait BinExt {
fn
connect_property_message_forward_notify
<
F
:
Fn
(
&
Self
)
+
Send
+
Sync
+
'static
>
(
&
self
,
f
:
F
)
->
SignalHandlerId
;
}
impl
<
O
:
IsA
<
Bin
>
+
IsA
<
glib
::
object
::
Object
>>
BinExt
for
O
{
impl
<
O
:
IsA
<
Bin
>
+
IsA
<
glib
::
object
::
Object
>>
Gst
BinExt
for
O
{
fn
add
<
P
:
IsA
<
Element
>>
(
&
self
,
element
:
&
P
)
->
Result
<
(),
glib
::
error
::
BoolError
>
{
unsafe
{
glib
::
error
::
BoolError
::
from_glib
(
ffi
::
gst_bin_add
(
self
.to_glib_none
()
.0
,
element
.to_glib_none
()
.0
),
"Failed to add element"
)
...
...
gstreamer/src/auto/mod.rs
View file @
0947c8f0
...
...
@@ -4,7 +4,7 @@
mod
bin
;
pub
use
self
::
bin
::
Bin
;
pub
use
self
::
bin
::
BinExt
;
pub
use
self
::
bin
::
Gst
BinExt
;
mod
buffer_pool
;
pub
use
self
::
buffer_pool
::
BufferPool
;
...
...
@@ -181,7 +181,7 @@ pub mod functions;
#[doc(hidden)]
pub
mod
traits
{
pub
use
super
::
BinExt
;
pub
use
super
::
Gst
BinExt
;
pub
use
super
::
BufferPoolExt
;
pub
use
super
::
ChildProxyExt
;
pub
use
super
::
ClockExt
;
...
...
gstreamer/src/bin.rs
View file @
0947c8f0
...
...
@@ -15,7 +15,7 @@ use glib::IsA;
use
ffi
;
pub
trait
BinExtManual
{
pub
trait
Gst
BinExtManual
{
fn
add_many
<
E
:
IsA
<
Element
>>
(
&
self
,
elements
:
&
[
&
E
])
->
Result
<
(),
glib
::
BoolError
>
;
fn
remove_many
<
E
:
IsA
<
Element
>>
(
&
self
,
elements
:
&
[
&
E
])
->
Result
<
(),
glib
::
BoolError
>
;
...
...
@@ -28,7 +28,7 @@ pub trait BinExtManual {
fn
get_children
(
&
self
)
->
Vec
<
Element
>
;
}
impl
<
O
:
IsA
<
Bin
>>
BinExtManual
for
O
{
impl
<
O
:
IsA
<
Bin
>>
Gst
BinExtManual
for
O
{
fn
add_many
<
E
:
IsA
<
Element
>>
(
&
self
,
elements
:
&
[
&
E
])
->
Result
<
(),
glib
::
BoolError
>
{
for
e
in
elements
{
unsafe
{
...
...
gstreamer/src/lib.rs
View file @
0947c8f0
...
...
@@ -176,7 +176,7 @@ mod pad;
mod
parse_context
;
mod
proxy_pad
;
mod
tag_setter
;
pub
use
bin
::
BinExtManual
;
pub
use
bin
::
Gst
BinExtManual
;
pub
use
element
::{
ElementExtManual
,
ElementMessageType
,
NotifyWatchId
};
pub
use
element
::{
ELEMENT_METADATA_AUTHOR
,
ELEMENT_METADATA_DESCRIPTION
,
ELEMENT_METADATA_DOC_URI
,
...
...
@@ -294,7 +294,7 @@ pub mod prelude {
pub
use
meta
::
MetaAPI
;
pub
use
bin
::
BinExtManual
;
pub
use
bin
::
Gst
BinExtManual
;
pub
use
element
::
ElementExtManual
;
// OS dependent Bus extensions (also import the other plateform trait for doc)
...
...
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