-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
CueControl: Fix previewing regression from PR #2194 #3267
Conversation
@daschuer Please verify if this fixes the issue reported in https://bugs.launchpad.net/mixxx/+bug/1903002. |
It is still there. I experienced now also the issue when jumping back ward. |
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.
Are you able to reproduce it?
Yes, sometimes the m_iCurrentlyPlayingHotcues semaphore is not updated properly:
|
I'm pretty sure |
Uh that is problematic, because sometimes the m_iCurrentlyPreviewingHotcues is test to 0 because of an earlier check of the same value. A Atomic allwn will not help. Too bad. |
We need to refactor isPlayingByPlayButton() to something like. |
Here's some log output: Apparently the issue is in the 3 block where
|
I have a hunch that this is caused by |
Let's merge this, as it fixes an issue when pressing 2 hotcue buttons concurrently. The other issue is also present in the 2.3 branch and also happens with regular cues, so it was not caused by #2194. |
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.
OK, LGTM
I can confirm that 2.3 is also affected by the issue. When this happens the hotcue_X_enabled control also sticks with 1, which is somehow correct :-/ |
I got it. It it: seekAbs(position); It happens that the engine with higher priority processes the seek before the play is set. I will issue a PR. |
I did swap it locally but I could still reproduce the issue IIRC. Worth a try anyway. |
Swapping does not work: |
No description provided.