mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
tutorials/basic-tutorial-13: Store the main context acquire guard in a variable
Otherwise it will be immediately released again.
This commit is contained in:
parent
1fa5028b90
commit
6b8bfd2701
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ USAGE: Choose one of the following options, then press enter:
|
|||
let main_context = glib::MainContext::default();
|
||||
// ... and make it the main context by default so that we can then have a channel to send the
|
||||
// commands we received from the terminal.
|
||||
main_context.acquire();
|
||||
let _guard = main_context.acquire();
|
||||
|
||||
// Build the channel to get the terminal inputs from a different thread.
|
||||
let (ready_tx, ready_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
|
|
Loading…
Reference in a new issue