tutorials: Update for glib::Priority API changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1237>
This commit is contained in:
Sebastian Dröge 2023-03-12 10:26:06 +02:00
parent 273f084c06
commit 7344e4bab2
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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));