Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. diff --git a/xbmc/ApplicationMessenger.cpp b/xbmc/ApplicationMessenger.cpp
  2. index 5551f7a..b0bfc80 100644
  3. --- a/xbmc/ApplicationMessenger.cpp
  4. +++ b/xbmc/ApplicationMessenger.cpp
  5. @@ -940,14 +940,14 @@ void CApplicationMessenger::MediaPlay(int playlistid, int song /* = -1 */)
  6. SendMessage(tMsg, true);
  7. }
  8.  
  9. -void CApplicationMessenger::PlayFile(const CFileItem &item, bool bRestart /*= false*/)
  10. +void CApplicationMessenger::PlayFile(const CFileItem &item, bool bRestart /*= false*/, bool bWait /*= false*/)
  11. {
  12. ThreadMessage tMsg = {TMSG_MEDIA_PLAY};
  13. CFileItem *pItem = new CFileItem(item);
  14. tMsg.lpVoid = (void *)pItem;
  15. tMsg.param1 = bRestart ? 1 : 0;
  16. tMsg.param2 = 0;
  17. - SendMessage(tMsg, false);
  18. + SendMessage(tMsg, bWait);
  19. }
  20.  
  21. void CApplicationMessenger::MediaStop(bool bWait /* = true */, int playlistid /* = -1 */)
  22. diff --git a/xbmc/ApplicationMessenger.h b/xbmc/ApplicationMessenger.h
  23. index 1ff19ab..3ba842c 100644
  24. --- a/xbmc/ApplicationMessenger.h
  25. +++ b/xbmc/ApplicationMessenger.h
  26. @@ -193,7 +193,7 @@ public:
  27. void PlayListPlayerSwap(int playlist, int indexItem1, int indexItem2);
  28. void PlayListPlayerRepeat(int playlist, int repeatState);
  29.  
  30. - void PlayFile(const CFileItem &item, bool bRestart = false); // thread safe version of g_application.PlayFile()
  31. + void PlayFile(const CFileItem &item, bool bRestart = false, bool bWait = false); // thread safe version of g_application.PlayFile()
  32. void PictureShow(std::string filename);
  33. void PictureSlideShow(std::string pathname, bool addTBN = false);
  34. void SetGUILanguage(const std::string &strLanguage);
  35. diff --git a/xbmc/network/AirTunesServer.cpp b/xbmc/network/AirTunesServer.cpp
  36. index 1ba4136..f004afe 100644
  37. --- a/xbmc/network/AirTunesServer.cpp
  38. +++ b/xbmc/network/AirTunesServer.cpp
  39. @@ -228,7 +228,7 @@ void* CAirTunesServer::AudioOutputFunctions::audio_init(void *cls, int bits, int
  40. item.SetMimeType("audio/x-xbmc-pcm");
  41. m_streamStarted = true;
  42.  
  43. - CApplicationMessenger::Get().PlayFile(item);
  44. + CApplicationMessenger::Get().PlayFile(item, false, true);//sync call
  45.  
  46. return session;//session
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement