Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer-rs
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
ccca8248
Commit
ccca8248
authored
Aug 01, 2018
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add getter for the current pad mode
parent
9e90a126
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
gstreamer/src/pad.rs
gstreamer/src/pad.rs
+10
-0
No files found.
gstreamer/src/pad.rs
View file @
ccca8248
...
...
@@ -224,6 +224,8 @@ pub trait PadExtManual {
fn
query_position
<
T
:
SpecificFormattedValue
>
(
&
self
)
->
Option
<
T
>
;
fn
query_position_generic
(
&
self
,
format
:
Format
)
->
Option
<
GenericFormattedValue
>
;
fn
get_mode
(
&
self
)
->
::
PadMode
;
}
impl
<
O
:
IsA
<
Pad
>>
PadExtManual
for
O
{
...
...
@@ -858,6 +860,14 @@ impl<O: IsA<Pad>> PadExtManual for O {
}
}
}
fn
get_mode
(
&
self
)
->
::
PadMode
{
unsafe
{
let
stash
=
self
.to_glib_none
();
let
ptr
:
&
ffi
::
GstPad
=
&*
stash
.
0
;
from_glib
(
ptr
.mode
)
}
}
}
unsafe
extern
"C"
fn
trampoline_pad_probe
(
...
...
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