summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-24 10:28:40 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-24 10:28:40 +0100
commitd121c9643095514178130b91907cb6f7ba97e74c (patch)
treecf8db309e6095b1427f8e34d1603a621c30f167a /src/lib/audio_decoder.cc
parentf0d7baf0ce956fe5461caa91868c41d881b5f0dc (diff)
Support repeat of more than one extra frame per source frame.
Diffstat (limited to 'src/lib/audio_decoder.cc')
-rw-r--r--src/lib/audio_decoder.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc
index c9fbddda1..c0ef02f65 100644
--- a/src/lib/audio_decoder.cc
+++ b/src/lib/audio_decoder.cc
@@ -48,10 +48,11 @@ AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame fr
}
/** This is a bit odd, but necessary when we have (e.g.) FFmpegDecoders with no audio.
- * The player needs to know that there is no audio otherwise it will keep prompting the XXX
+ * The player needs to know that there is no audio otherwise it will keep trying to
+ * pass() the decoder to get it to emit audio.
*/
bool
AudioDecoder::has_audio () const
{
- return _audio_content->channels () > 0;
+ return _audio_content->audio_channels () > 0;
}