Conditionally use glib crate in player example

This commit is contained in:
Sebastian Dröge 2017-09-01 14:12:26 +03:00
parent 4900fbe293
commit 556b0197fc

View file

@ -5,6 +5,9 @@ use gst::prelude::*;
#[cfg(feature = "gst-player")] #[cfg(feature = "gst-player")]
extern crate gstreamer_player as gst_player; extern crate gstreamer_player as gst_player;
#[cfg(feature = "gst-player")]
extern crate glib;
use std::env; use std::env;
pub mod utils; pub mod utils;