-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[fix][seekhandler] seek size can exceed min and max time of player #13236
Conversation
@@ -67,7 +67,7 @@ void CGUIDialogSeekBar::FrameMove() | |||
return; | |||
} | |||
|
|||
unsigned int percent((!CSeekHandler::GetInstance().InProgress() && g_infoManager.GetTotalPlayTime()) | |||
unsigned int percent((!g_application.m_pPlayer->GetSeekHandler().InProgress() && g_infoManager.GetTotalPlayTime()) |
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.
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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
xbmc/ApplicationPlayer.h
Outdated
|
||
private: | ||
std::shared_ptr<IPlayer> m_pPlayer; | ||
std::unique_ptr<CSeekHandler> m_seekHandler; |
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.
xbmc/Application.cpp
Outdated
@@ -2911,7 +2911,7 @@ void CApplication::Stop(int exitCode) | |||
CServiceBroker::GetServiceAddons().Stop(); | |||
|
|||
// unregister action listeners | |||
UnregisterActionListener(&CSeekHandler::GetInstance()); | |||
UnregisterActionListener(&g_application.m_pPlayer->GetSeekHandler()); |
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.
@FernetMenta @da-anda addressed in the fixup commit, please take another look. |
24b3154
to
9c79bb7
Compare
9c79bb7
to
c9593ba
Compare
The seek size in
CSeekHandler
could exceed the min and max time of the current playing item. This PR address it and also does some refactoring and cleanups as discussed with @FernetMenta.@da-anda as you requested