Fix extra window appearing for some podcasts

Fixes #156.
This commit is contained in:
James Westman 2019-10-24 18:46:55 -05:00 committed by Jordan Petridis
parent 377d7bdf47
commit 33d28d1e7b

View File

@ -213,6 +213,10 @@ impl Default for PlayerWidget {
Some(&dispatcher.upcast::<gst_player::PlayerSignalDispatcher>()),
);
// A few podcasts have a video track of the thumbnail, which GStreamer displays in a new
// window. Make sure it doesn't do that.
player.set_video_track_enabled(false);
let mpris = MprisPlayer::new(
APP_ID.to_string(),
"GNOME Podcasts".to_string(),