Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed: Fires the OnPlayBackResumed() event when returning to normal…

… play speed from FF/RW for both DVDPlayer and PAPlayer. (one useful reason is for auto scrolling lyrics scripts)
  • Loading branch information...
commit 08d4789757d2ccc5a6bc185dc6d33001ce507dec 1 parent 8cc72eb
Scott Johns authored
5 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -2671,6 +2671,11 @@ void CDVDPlayer::ToFFRW(int iSpeed)
2671 2671 // forward is fine
2672 2672 if (iSpeed < 0 && IsInMenu()) return;
2673 2673 SetPlaySpeed(iSpeed * DVD_PLAYSPEED_NORMAL);
  2674 + if (iSpeed == 1)
  2675 + {
  2676 + m_callback.OnPlayBackResumed();
  2677 + CLog::Log(LOGDEBUG, "DVDPlayer: Playback resumed");
  2678 + }
2674 2679 }
2675 2680
2676 2681 bool CDVDPlayer::OpenAudioStream(int iStream, int source)
5 xbmc/cores/paplayer/PAPlayer.cpp
@@ -490,6 +490,11 @@ void PAPlayer::ToFFRW(int iSpeed)
490 490 {
491 491 m_iSpeed = iSpeed;
492 492 m_callback.OnPlayBackSpeedChanged(iSpeed);
  493 + if (iSpeed == 1)
  494 + {
  495 + m_callback.OnPlayBackResumed();
  496 + CLog::Log(LOGDEBUG, "PAPlayer: Playback resumed");
  497 + }
493 498 }
494 499
495 500 void PAPlayer::UpdateCacheLevel()

0 comments on commit 08d4789

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