summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-26 19:29:53 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-26 19:29:53 +0100
commit18593159bef6174dc65520df1c4b871e13baf1f7 (patch)
tree7d50236a3b5582648e2fa7dd08fb8f8b93c6cb06 /src/lib
parent3e1ae9934f3b908943c90db523ae2332022b5f1d (diff)
Fix player logic.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 357c69e82..4caddb7e6 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -75,7 +75,7 @@ Player::pass ()
bool done = true;
- if (_video_decoder < _video_decoders.size ()) {
+ if (_video && _video_decoder < _video_decoders.size ()) {
/* Run video decoder; this may also produce audio */
@@ -87,7 +87,9 @@ Player::pass ()
done = false;
}
- } else if (!_video && _playlist->audio_from() == Playlist::AUDIO_FFMPEG && _sequential_audio_decoder < _audio_decoders.size ()) {
+ }
+
+ if (!_video && _playlist->audio_from() == Playlist::AUDIO_FFMPEG && _sequential_audio_decoder < _audio_decoders.size ()) {
/* We're not producing video, so we may need to run FFmpeg content to get the audio */
@@ -99,8 +101,10 @@ Player::pass ()
done = false;
}
- } else if (_playlist->audio_from() == Playlist::AUDIO_SNDFILE) {
+ }
+ if (_playlist->audio_from() == Playlist::AUDIO_SNDFILE) {
+
/* We're getting audio from SndfileContent */
for (vector<shared_ptr<AudioDecoder> >::iterator i = _audio_decoders.begin(); i != _audio_decoders.end(); ++i) {