New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed OnPlayBackResumed not getting fired anymore. #10739
Fixed OnPlayBackResumed not getting fired anymore. #10739
Conversation
@@ -3104,7 +3104,6 @@ void CVideoPlayer::Pause() | |||
if (GetSpeed() == 0) | |||
{ | |||
SetSpeed(1); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -3647,6 +3646,8 @@ void CVideoPlayer::SetSpeed(float speed) | |||
|
|||
m_newPlaySpeed = speed * DVD_PLAYSPEED_NORMAL; | |||
SetPlaySpeed(speed * DVD_PLAYSPEED_NORMAL); | |||
if (speed == 1) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
fed3939
to
69ad77b
Compare
Updated |
I don't think that this will work, because if you call SetSpeed(1) then SetSpeed(2) it will call |
Right forgot about fast forward |
add the new speed to the comparison. if (old == 0 && new != 0) OnResume(); |
m_newPlaySpeed = speed * DVD_PLAYSPEED_NORMAL; | ||
SetPlaySpeed(speed * DVD_PLAYSPEED_NORMAL); | ||
if (m_oldPlayerSpeed == 0) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
69ad77b
to
430fa45
Compare
Updated, I hope I understood you this time :) |
@@ -3647,6 +3645,14 @@ void CVideoPlayer::SetSpeed(float speed) | |||
|
|||
m_newPlaySpeed = speed * DVD_PLAYSPEED_NORMAL; | |||
SetPlaySpeed(speed * DVD_PLAYSPEED_NORMAL); | |||
if (m_newPlaySpeed == DVD_PLAYSPEED_NORMAL && m_playSpeed != DVD_PLAYSPEED_NORMAL) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
430fa45
to
c3b28c7
Compare
m_callback.OnPlayBackResumed(); | ||
else if (m_newPlaySpeed == DVD_PLAYSPEED_PAUSE) | ||
m_callback.OnPlayBackPaused(); | ||
} | ||
SetPlaySpeed(speed * DVD_PLAYSPEED_NORMAL); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -3646,6 +3644,13 @@ void CVideoPlayer::SetSpeed(float speed) | |||
return; | |||
|
|||
m_newPlaySpeed = speed * DVD_PLAYSPEED_NORMAL; | |||
if (m_newPlaySpeed != m_playSpeed) | |||
{ | |||
if (m_newPlaySpeed == DVD_PLAYSPEED_NORMAL) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
c3b28c7
to
8e1f559
Compare
Updated |
jenkins build this please |
if (m_newPlaySpeed == DVD_PLAYSPEED_NORMAL) | ||
m_callback.OnPlayBackResumed(); | ||
else if (m_newPlaySpeed == DVD_PLAYSPEED_PAUSE) | ||
m_callback.OnPlayBackPaused(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
8e1f559
to
0d4eec0
Compare
jenkins build this please |
@FernetMenta all good now? |
looks good |
Description
Make sure OnPlayBackResumed get's fired when we resume.
Motivation and Context
http://trac.kodi.tv/ticket/16976#ticket
How Has This Been Tested?
Tested on windows 10 in the vs debugger
Types of change
Checklist: