Review Request: Small EngineController refactoring

Ralf Engels ralf-engels at gmx.de
Sun Oct 24 22:30:15 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100097/
-----------------------------------------------------------

(Updated 2010-10-24 20:30:15.466951)


Review request for Amarok.


Changes
-------

It seems that the previous patch had a serious side effect.
Actually it was pretty difficult and had to do with a weak pointer as function parameter by reference.

In addition another small problem was fixed.
Unsetting the fadeout in the settings did only work after restart.
You have to look at the code to notice the slight mistake.


Summary
-------

It turned out that calling EngineController::play did not call Track::finishedPlaying.
This was done by the PlaylistActions.
In all other cases the EngineController called finishedPlaying by itself.

So I moved the function from PlaylistActions to the controller.
As it turned out the EngineController even leaked BoundedPlaybackCapability objects in stop().

I hope this fixes 254631, but I think that the chances are not good.


This addresses bug 254631.
    https://bugs.kde.org/show_bug.cgi?id=254631


Diffs (updated)
-----

  src/EngineController.h 51e7fb3 
  src/EngineController.cpp 5e07700 
  src/playlist/PlaylistActions.cpp bc6ef5b 

Diff: http://git.reviewboard.kde.org/r/100097/diff


Testing
-------

Playing around with stop, next and so on while looking for the finishedPlaying debug output.


Thanks,

Ralf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20101024/44224b14/attachment-0001.htm 


More information about the Amarok-devel mailing list