Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/xbmc/ApplicationPlayer.cpp b/xbmc/ApplicationPlayer.cpp
- index 63f1975..eeb5c78 100644
- --- a/xbmc/ApplicationPlayer.cpp
- +++ b/xbmc/ApplicationPlayer.cpp
- @@ -586,6 +586,20 @@ void CApplicationPlayer::SetSubtitleVisible(bool bVisible)
- }
- }
- +void CApplicationPlayer::SetTime(int64_t time)
- +{
- + std::shared_ptr<IPlayer> player = GetInternal();
- + if (player)
- + return player->SetTime(time);
- +}
- +
- +void CApplicationPlayer::SetTotalTime(int64_t time)
- +{
- + std::shared_ptr<IPlayer> player = GetInternal();
- + if (player)
- + player->SetTotalTime(time);
- +}
- +
- void CApplicationPlayer::AddSubtitle(const std::string& strSubPath)
- {
- std::shared_ptr<IPlayer> player = GetInternal();
- diff --git a/xbmc/ApplicationPlayer.h b/xbmc/ApplicationPlayer.h
- index 3752f6b..dfc6316 100644
- --- a/xbmc/ApplicationPlayer.h
- +++ b/xbmc/ApplicationPlayer.h
- @@ -176,6 +176,8 @@ public:
- void SetSubtitle(int iStream);
- void SetSubTitleDelay(float fValue = 0.0f);
- void SetSubtitleVisible(bool bVisible);
- + void SetTime(int64_t time);
- + void SetTotalTime(int64_t time);
- void SetVolume(float volume);
- bool SwitchChannel(const PVR::CPVRChannelPtr &channel);
- void ToFFRW(int iSpeed = 0);
- diff --git a/xbmc/network/AirTunesServer.cpp b/xbmc/network/AirTunesServer.cpp
- index 205b553..36b63f0 100644
- --- a/xbmc/network/AirTunesServer.cpp
- +++ b/xbmc/network/AirTunesServer.cpp
- @@ -415,11 +415,8 @@ void CAirTunesServer::AudioOutputFunctions::audio_set_progress(void *cls, void *
- duration /= m_sampleRate;
- position /= m_sampleRate;
- - if (g_application.m_pPlayer->GetInternal())
- - {
- - g_application.m_pPlayer->GetInternal()->SetTime(position * 1000);
- - g_application.m_pPlayer->GetInternal()->SetTotalTime(duration * 1000);
- - }
- + g_application.m_pPlayer->SetTime(position * 1000);
- + g_application.m_pPlayer->SetTotalTime(duration * 1000);
- }
- void CAirTunesServer::SetupRemoteControl()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement