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
GStreamer
gstreamer-rs
Commits
37c3d2d8
Commit
37c3d2d8
authored
Oct 12, 2021
by
Sebastian Dröge
🍵
Browse files
Update for glib::source_remove() removal
parent
d7fe6107
Pipeline
#421389
waiting for manual action with stages
in 30 minutes and 23 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/src/bin/gtksink.rs
View file @
37c3d2d8
...
...
@@ -153,7 +153,7 @@ fn create_ui(app: >k::Application) {
}
if
let
Some
(
timeout_id
)
=
timeout_id
.borrow_mut
()
.take
()
{
glib
::
source_remove
(
timeout_id
);
timeout_id
.remove
(
);
}
});
}
...
...
examples/src/bin/gtkvideooverlay.rs
View file @
37c3d2d8
...
...
@@ -258,7 +258,7 @@ fn create_ui(app: >k::Application) {
}
if
let
Some
(
timeout_id
)
=
timeout_id
.borrow_mut
()
.take
()
{
glib
::
source_remove
(
timeout_id
);
timeout_id
.remove
(
);
}
});
}
...
...
examples/src/bin/queries.rs
View file @
37c3d2d8
...
...
@@ -124,7 +124,7 @@ fn example_main() {
.expect
(
"Unable to set the pipeline to the `Null` state"
);
bus
.remove_watch
()
.unwrap
();
glib
::
source_remove
(
timeout_id
);
timeout_id
.remove
(
);
}
fn
main
()
{
...
...
examples/src/bin/rtsp-server-record.rs
View file @
37c3d2d8
...
...
@@ -141,7 +141,7 @@ fn main_loop() -> Result<(), Error> {
// incoming connections from clients.
main_loop
.run
();
glib
::
source_
remove
(
id
);
id
.
remove
();
Ok
(())
}
...
...
examples/src/bin/rtsp-server-subclass.rs
View file @
37c3d2d8
...
...
@@ -73,7 +73,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop
.run
();
glib
::
source_
remove
(
id
);
id
.
remove
();
Ok
(())
}
...
...
examples/src/bin/rtsp-server.rs
View file @
37c3d2d8
...
...
@@ -77,7 +77,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop
.run
();
glib
::
source_
remove
(
id
);
id
.
remove
();
Ok
(())
}
...
...
tutorials/src/bin/basic-tutorial-5.rs
View file @
37c3d2d8
...
...
@@ -30,7 +30,7 @@ mod tutorial5 {
impl
Drop
for
AppWindow
{
fn
drop
(
&
mut
self
)
{
if
let
Some
(
source_id
)
=
self
.timeout_id
.take
()
{
glib
::
source_remove
(
source_id
);
source_
id
.
remove
();
}
}
}
...
...
tutorials/src/bin/basic-tutorial-8.rs
View file @
37c3d2d8
...
...
@@ -207,7 +207,7 @@ fn main() {
let
mut
data
=
data
.lock
()
.unwrap
();
if
let
Some
(
source
)
=
data
.source_id
.take
()
{
println!
(
"stop feeding"
);
glib
::
source
::
source_
remove
(
source
);
source
.
remove
();
}
})
.build
(),
...
...
tutorials/src/bin/playback-tutorial-4.rs
View file @
37c3d2d8
...
...
@@ -180,7 +180,7 @@ fn tutorial_main() -> Result<(), Error> {
pipeline
.set_state
(
gst
::
State
::
Null
)
?
;
bus
.remove_watch
()
?
;
glib
::
source_remove
(
timeout_id
);
timeout_id
.remove
(
);
Ok
(())
}
...
...
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