Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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