Skip to content
This repository
Browse code

Merge pull request #2094 from davilla/setspeed

add DVDVideoCodec::SetSpeed
  • Loading branch information...
commit fde9c9274c90db7b6c61f2690e84f79c36cf4e9d 2 parents 2e02d53 + a558c00
davilla authored January 19, 2013
6  xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodec.h
@@ -192,6 +192,12 @@ class CDVDVideoCodec
192 192
   virtual void SetDropState(bool bDrop) = 0;
193 193
 
194 194
   /*
  195
+   * will be called by video player indicating the playback speed. see DVD_PLAYSPEED_NORMAL,
  196
+   * DVD_PLAYSPEED_PAUSE and friends.
  197
+   */
  198
+  virtual void SetSpeed(int iSpeed) {};
  199
+
  200
+  /*
195 201
    * returns the number of demuxer bytes in any internal buffers
196 202
    */
197 203
   virtual int GetDataSize(void)
2  xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
@@ -465,6 +465,8 @@ void CDVDPlayerVideo::Process()
465 465
       m_speed = static_cast<CDVDMsgInt*>(pMsg)->m_value;
466 466
       if(m_speed == DVD_PLAYSPEED_PAUSE)
467 467
         m_iNrOfPicturesNotToSkip = 0;
  468
+      if (m_pVideoCodec)
  469
+        m_pVideoCodec->SetSpeed(m_speed);
468 470
     }
469 471
     else if (pMsg->IsType(CDVDMsg::PLAYER_STARTED))
470 472
     {

0 notes on commit fde9c92

Please sign in to comment.
Something went wrong with that request. Please try again.