Bug 305587

Summary: currentSource change ought to be async
Product: [Frameworks and Libraries] Phonon Reporter: Harald Sitter <sitter>
Component: generalAssignee: Harald Sitter <sitter>
Status: CONFIRMED ---    
Severity: major CC: martin.sandsmark, myriam, romain.perier
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 4.6.1   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Harald Sitter 2012-08-22 11:01:28 UTC
Currently when libphonon gets an aboutToFinish from the backend it forwards it in a blocking manner to the consumer which will then be able to set the next source. upon returning of the emission it then dequeues an item and sets it as new source whilist setting it as next source for the backend.

There is a grave problem with this as the only way to know that the backend actually changed the source is when it emitted the sourceChanged signal, so ultimately currentSource would only be changed on an explicit change (setCurrentSource) or when the backend emitted aforementioned signal. In particular we do not know how much time the backend leaves between aboutToFinish and finish, in case of pgst I have seen this to be ~8 seconds, which is a long time for providing bogus information to the frontend.

Reproducible: Always
Comment 1 Harald Sitter 2012-08-22 11:01:56 UTC
also see bug #305021
Comment 2 Justin Zobel 2021-03-09 22:36:56 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.