forked from mirrors/gstreamer-rs
Fix compilation with --features tokio in the examples
This commit is contained in:
parent
0bc43ed053
commit
c235d90834
2 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,6 @@ use gst::prelude::*;
|
|||
|
||||
#[cfg(feature = "gst-player")]
|
||||
extern crate gstreamer_player as gst_player;
|
||||
#[cfg(feature = "gst-player")]
|
||||
use gst_player::prelude::*;
|
||||
|
||||
extern crate glib;
|
||||
|
||||
|
|
|
@ -28,7 +28,9 @@ fn main() {
|
|||
let ret = pipeline.set_state(gst::State::Playing);
|
||||
assert_ne!(ret, gst::StateChangeReturn::Failure);
|
||||
|
||||
let messages = BusStream::new(&bus).for_each(|msg| {
|
||||
let messages = gst::BusStream::new(&bus).for_each(|msg| {
|
||||
use gst::MessageView;
|
||||
|
||||
let quit = match msg.view() {
|
||||
MessageView::Eos(..) => true,
|
||||
MessageView::Error(err) => {
|
||||
|
|
Loading…
Reference in a new issue