Remove some left-over JSON bits.
[dcpomatic.git] / src / lib / audio_decoder.cc
index c9fbddda1c4b120033ec1c3d630f7956966e405c..18f4b890d6b8878cc58eabc6a2aba5930eec6838 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "i18n.h"
 
-using std::stringstream;
 using std::list;
 using std::pair;
 using std::cout;
@@ -48,10 +47,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;
 }