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
Bugfix seek and play commands #738
Conversation
…Bugs #1504851 and #1504503 Tests are also in place
https://bugs.launchpad.net/mixxx/+bug/1467057 is also fixed by this PR |
The reported error is a Travis VM error. This PR also fixes Bug https://bugs.launchpad.net/mixxx/+bug/1504643 |
|
||
// Add SEEK_PHASE bit, if any | ||
seekType |= static_cast<SeekRequests>( | ||
m_iSeekPhaseQueued.fetchAndStoreRelease(SEEK_NONE)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this interface is now confusing because m_iSeekQueued could still be set to SEEK_PHASE
It looks like SEEK_PHASE should be removed, and m_iSeekPhaseQueued should only be set to true or false
m_iSeekPhaseQueued is now used as a boolean |
Checks faild because of the famous Travis error:
|
Done. |
@ywwg: ready for merge? |
Thank you for this big fix :) |
Could be good to mark the bug reports as fixed :) |
I have added fixes for some corner cases. |
For this one, it's fixed : |
Do not consider this post, mistake |
@@ -401,12 +402,19 @@ void EngineBuffer::queueNewPlaypos(double newpos, enum SeekRequest seekType) { | |||
// All seeks need to be done in the Engine thread so queue it up. | |||
// Write the position before the seek type, to reduce a possible race | |||
// condition effect | |||
m_queuedPosition.setValue(newpos); | |||
DEBUG_ASSERT_AND_HANDLE(seekType != SEEK_PHASE) { | |||
// SEEK_PASE with a position is not supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo -> SEEK_PHASE
small typo, then LGTM |
Thank you for review! |
Bugfix seek and play commands
This PR fixes some bugs, effecting seek and play commands.
https://bugs.launchpad.net/mixxx/+bug/1504838
https://bugs.launchpad.net/mixxx/+bug/1504503
https://bugs.launchpad.net/mixxx/+bug/1504851
https://bugs.launchpad.net/mixxx/+bug/1504934
All of them are verified by unit-tests.