Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
eb99694e
Commit
eb99694e
authored
Nov 11, 2017
by
Sebastian Dröge
🍵
Browse files
Minor cleanup of appsink example
parent
90700aa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/src/bin/appsink.rs
View file @
eb99694e
...
...
@@ -124,9 +124,7 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
Ok
(
pipeline
)
}
fn
main_loop
()
->
Result
<
(),
Error
>
{
let
pipeline
=
create_pipeline
()
?
;
fn
main_loop
(
pipeline
:
gst
::
Pipeline
)
->
Result
<
(),
Error
>
{
pipeline
.set_state
(
gst
::
State
::
Playing
)
.into_result
()
?
;
let
bus
=
pipeline
...
...
@@ -157,7 +155,7 @@ fn main_loop() -> Result<(), Error> {
}
fn
main
()
{
match
main_loop
(
)
{
match
create_pipeline
()
.and_then
(
main_loop
)
{
Ok
(
r
)
=>
r
,
Err
(
e
)
=>
eprintln!
(
"Error! {}"
,
e
),
}
...
...
Write
Preview
Supports
Markdown
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