Advertisement
Guest User

Untitled

a guest
Jun 19th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. diff --git a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp b/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  2. index a16638e..e864663 100644
  3. --- a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  4. +++ b/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  5. @@ -521,10 +521,17 @@ void avfDecoder::run()
  6. !m_userStop && m_seekTime <= 0.0)
  7. {
  8. int ret;
  9. - ret = AudioOutputUtil::DecodeAudio(m_audioDec,
  10. - m_outputBuffer + m_outputAt,
  11. - data_size,
  12. - &tmp_pkt);
  13. + if (output())
  14. + {
  15. + ret = output()->DecodeAudio(m_audioDec,
  16. + m_outputBuffer + m_outputAt,
  17. + data_size,
  18. + &tmp_pkt);
  19. + }
  20. + else
  21. + {
  22. + ret = tmp_pkt.size;
  23. + }
  24. if (ret < 0)
  25. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement