Fix compilation with --features tokio in the examples

This commit is contained in:
Sebastian Dröge 2017-08-17 18:16:48 +03:00
parent 0bc43ed053
commit c235d90834
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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) => {