-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
scePsmf() : add isPlayingStatus check #5338
Conversation
It is referencing to apply psmfplayer status check here. It fixes the hanging in return PSMF video/audio when end. |
I don't really understand your condition:
The NONE part seems completely superfluous. Like saying, "if I don't have 3, 4, or 5 apples - or if I have 9 apples." 9 isn't one of 3, 4, or 5 anyway. I assume these statuses aren't tested and is just from JPCSP, right? -[Unknown] |
Yep , it is borrow from JPCSP though . Sorry the NONE part is wrongly put in during testing and has been removed here |
This is the ref code from JPCSP and translate here in this commit
|
Would have been nicer to centralize the check in a function (like, bool IsPlayingStatus(u32 status) ). By the way, it looks pretty odd to have _ERROR in there. Is there a motivation for that? |
I'll have further check here to see if that _ERROR is necessary and also consolidate it in a single function and call it . |
Done .Should be clean now. |
@hrydgard , okay to merge? |
Hm, didn't you flip all the checks to the opposite now? Shouldn't it be:
|
Confusingly, isPlayingStatus() returns -[Unknown] |
Ah right, so it's correct but wrongly named. Please rename it "isNotPlaying" or reverse the return value and the checks. |
Done. Should be good this time. |
Just tested Crimson Room Reverse , this commit also fixed it . |
scePsmf() : add isPlayingStatus check
Fixes #5178