Skip to content

Commit

Permalink
[players] Fix for SetPriority calls being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed May 24, 2015
1 parent 00dba75 commit f5353c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions xbmc/cores/dvdplayer/DVDPlayerAudio.h
Expand Up @@ -103,6 +103,7 @@ class CDVDPlayerAudio : public CThread, public IDVDStreamPlayerAudio
CDVDPlayerAudio(CDVDClock* pClock, CDVDMessageQueue& parent);
virtual ~CDVDPlayerAudio();

bool SetPriority(const int iPriority) { return CThread::SetPriority(iPriority); }
bool OpenStream(CDVDStreamInfo &hints);
void CloseStream(bool bWaitForBuffers);

Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/dvdplayer/DVDPlayerVideo.h
Expand Up @@ -63,6 +63,7 @@ class CDVDPlayerVideo : public CThread, public IDVDStreamPlayerVideo
, CDVDMessageQueue& parent);
virtual ~CDVDPlayerVideo();

bool SetPriority(const int iPriority) { return CThread::SetPriority(iPriority); }
bool OpenStream(CDVDStreamInfo &hint);
void CloseStream(bool bWaitForBuffers);

Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/dvdplayer/IDVDPlayer.h
Expand Up @@ -55,7 +55,7 @@ class IDVDStreamPlayerVideo : public IDVDStreamPlayer
public:
~IDVDStreamPlayerVideo() {}
float GetRelativeUsage() { return 0.0f; }
bool SetPriority(const int iPriority) { return true; }
virtual bool SetPriority(const int iPriority) = 0;
virtual bool OpenStream(CDVDStreamInfo &hint) = 0;
virtual void CloseStream(bool bWaitForBuffers) = 0;
virtual bool StepFrame() = 0;
Expand Down Expand Up @@ -96,7 +96,7 @@ class IDVDStreamPlayerAudio : public IDVDStreamPlayer
public:
~IDVDStreamPlayerAudio() {}
float GetRelativeUsage() { return 0.0f; }
bool SetPriority(const int iPriority) { return true; }
virtual bool SetPriority(const int iPriority) = 0;
virtual bool OpenStream(CDVDStreamInfo &hints) = 0;
virtual void CloseStream(bool bWaitForBuffers) = 0;
virtual void SetSpeed(int speed) = 0;
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/omxplayer/OMXPlayerAudio.h
Expand Up @@ -75,6 +75,7 @@ class OMXPlayerAudio : public CThread, public IDVDStreamPlayerAudio
public:
OMXPlayerAudio(OMXClock *av_clock, CDVDMessageQueue& parent);
~OMXPlayerAudio();
bool SetPriority(const int iPriority) { return CThread::SetPriority(iPriority); }
bool OpenStream(CDVDStreamInfo &hints);
void SendMessage(CDVDMsg* pMsg, int priority = 0) { m_messageQueue.Put(pMsg, priority); }
void FlushMessages() { m_messageQueue.Flush(); }
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/omxplayer/OMXPlayerVideo.h
Expand Up @@ -87,6 +87,7 @@ class OMXPlayerVideo : public CThread, public IDVDStreamPlayerVideo
public:
OMXPlayerVideo(OMXClock *av_clock, CDVDOverlayContainer* pOverlayContainer, CDVDMessageQueue& parent);
~OMXPlayerVideo();
bool SetPriority(const int iPriority) { return CThread::SetPriority(iPriority); }
bool OpenStream(CDVDStreamInfo &hints);
void SendMessage(CDVDMsg* pMsg, int priority = 0) { m_messageQueue.Put(pMsg, priority); }
void FlushMessages() { m_messageQueue.Flush(); }
Expand Down

0 comments on commit f5353c6

Please sign in to comment.