aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2014-08-05 13:29:02 +0100
committerpopcornmix <popcornmix@gmail.com>2014-08-05 16:12:18 +0100
commitceb21aad7e6396db78e71c23830969e0bf1eb3e6 (patch)
treee1d73697207790e858046850218d626d1fe3816f
parentbe9aaf4a9358f681eae63b476fb36f53e08750af (diff)
[players] Add plumbing for missing methods for consistency
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayer.h1
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayerAudio.h4
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayerVideo.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayer.h b/xbmc/cores/dvdplayer/DVDPlayer.h
index 6d8097549c..2b16a90e57 100644
--- a/xbmc/cores/dvdplayer/DVDPlayer.h
+++ b/xbmc/cores/dvdplayer/DVDPlayer.h
@@ -190,6 +190,7 @@ public:
virtual void RegisterAudioCallback(IAudioCallback* pCallback) { m_dvdPlayerAudio.RegisterAudioCallback(pCallback); }
virtual void UnRegisterAudioCallback() { m_dvdPlayerAudio.UnRegisterAudioCallback(); }
virtual void SetVolume(float nVolume) { m_dvdPlayerAudio.SetVolume(nVolume); }
+ virtual void SetMute(bool bOnOff) { m_dvdPlayerAudio.SetMute(bOnOff); }
virtual void SetDynamicRangeCompression(long drc) { m_dvdPlayerAudio.SetDynamicRangeCompression(drc); }
virtual void GetAudioInfo(std::string& strAudioInfo);
virtual void GetVideoInfo(std::string& strVideoInfo);
diff --git a/xbmc/cores/dvdplayer/DVDPlayerAudio.h b/xbmc/cores/dvdplayer/DVDPlayerAudio.h
index c202c4ef97..3f13c5a792 100644
--- a/xbmc/cores/dvdplayer/DVDPlayerAudio.h
+++ b/xbmc/cores/dvdplayer/DVDPlayerAudio.h
@@ -126,7 +126,10 @@ public:
void SendMessage(CDVDMsg* pMsg, int priority = 0) { m_messageQueue.Put(pMsg, priority); }
void SetVolume(float fVolume) { m_dvdAudio.SetVolume(fVolume); }
+ void SetMute(bool bOnOff) { }
void SetDynamicRangeCompression(long drc) { m_dvdAudio.SetDynamicRangeCompression(drc); }
+ float GetDynamicRangeAmplification() const { return 0.0f; }
+
std::string GetPlayerInfo();
int GetAudioBitrate();
@@ -140,6 +143,7 @@ public:
double GetCurrentPts() { CSingleLock lock(m_info_section); return m_info.pts; }
bool IsStalled() const { return m_stalled; }
+ bool IsEOS() { return false; }
bool IsPassthrough() const;
protected:
diff --git a/xbmc/cores/dvdplayer/DVDPlayerVideo.h b/xbmc/cores/dvdplayer/DVDPlayerVideo.h
index ad2b3799e8..37a37c46b0 100644
--- a/xbmc/cores/dvdplayer/DVDPlayerVideo.h
+++ b/xbmc/cores/dvdplayer/DVDPlayerVideo.h
@@ -77,6 +77,7 @@ public:
void SetSubtitleDelay(double delay) { m_iSubtitleDelay = delay; }
bool IsStalled() const { return m_stalled; }
+ bool IsEOS() { return false; }
double GetCurrentPts() { return m_iCurrentPts; }