Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add DVDVideoCodec::SetSpeed

  • Loading branch information...
commit a558c00406ef884095bba33d0eb41509177abecb 1 parent 66e5d70
@davilla davilla authored
View
6 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
@@ -192,6 +192,12 @@ class CDVDVideoCodec
virtual void SetDropState(bool bDrop) = 0;
/*
+ * will be called by video player indicating the playback speed. see DVD_PLAYSPEED_NORMAL,
+ * DVD_PLAYSPEED_PAUSE and friends.
+ */
+ virtual void SetSpeed(int iSpeed) {};
+
+ /*
* returns the number of demuxer bytes in any internal buffers
*/
virtual int GetDataSize(void)
View
2  xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
@@ -465,6 +465,8 @@ void CDVDPlayerVideo::Process()
m_speed = static_cast<CDVDMsgInt*>(pMsg)->m_value;
if(m_speed == DVD_PLAYSPEED_PAUSE)
m_iNrOfPicturesNotToSkip = 0;
+ if (m_pVideoCodec)
+ m_pVideoCodec->SetSpeed(m_speed);
}
else if (pMsg->IsType(CDVDMsg::PLAYER_STARTED))
{
Please sign in to comment.
Something went wrong with that request. Please try again.