Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2094 from davilla/setspeed

add DVDVideoCodec::SetSpeed
  • Loading branch information...
commit fde9c9274c90db7b6c61f2690e84f79c36cf4e9d 2 parents 2e02d53 + a558c00
davilla davilla authored
6 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
View
@@ -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)
2  xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
View
@@ -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.