mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-24 18:41:02 +00:00
tutorials: Update for glib::Priority
API changes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1237>
This commit is contained in:
parent
273f084c06
commit
7344e4bab2
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ USAGE: Choose one of the following options, then press enter:
|
|||
let _guard = main_context.acquire().unwrap();
|
||||
|
||||
// Build the channel to get the terminal inputs from a different thread.
|
||||
let (ready_tx, ready_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
let (ready_tx, ready_rx) = glib::MainContext::channel(glib::Priority::DEFAULT);
|
||||
|
||||
thread::spawn(move || handle_keyboard(ready_tx));
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
let _guard = main_context.acquire().unwrap();
|
||||
|
||||
// Build the channel to get the terminal inputs from a different thread.
|
||||
let (ready_tx, ready_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT);
|
||||
let (ready_tx, ready_rx) = glib::MainContext::channel(glib::Priority::DEFAULT);
|
||||
|
||||
// Start the keyboard handling thread
|
||||
thread::spawn(move || handle_keyboard(ready_tx));
|
||||
|
|
Loading…
Reference in a new issue