From 04cca7e8804b179be3ecb0d2b97d4d69e7fffede Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Jan 2014 22:16:19 +0000 Subject: Don't take into account audio decoders with no audio when updating audio_done_up_to, otherwise it will await audio from those decoders that never comes. --- src/lib/player.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/player.cc b/src/lib/player.cc index 56145f5bd..ce5109733 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -224,7 +224,8 @@ Player::pass () continue; } - if (dynamic_pointer_cast ((*i)->decoder)) { + shared_ptr ad = dynamic_pointer_cast ((*i)->decoder); + if (ad && ad->has_audio ()) { audio_done_up_to = min (audio_done_up_to.get_value_or (TIME_MAX), (*i)->audio_position); } } -- cgit v1.2.3