Bug 408295

Summary: After starting Elisa, first song played starts in the middle if a song was paused the last time Elisa was quit
Product: [Applications] Elisa Reporter: Nate Graham <nate>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, pietro.fontana
Priority: NOR Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=408134
Latest Commit: Version Fixed In: 20.12

Description Nate Graham 2019-06-04 14:01:57 UTC
STEPS TO REPRODUCE
1. Start playing a song
2. Pause it in the middle
3. Quit Elisa
4. Open Elisa again
5. Play any song by any method


OBSERVED RESULT
The song starts playing in the middle, at the approximate playback position as the last song played before quitting Elisa.


EXPECTED RESULT
The song should start playing from the beginning.


SOFTWARE/OS VERSIONS
Everything from git master
Comment 1 Nate Graham 2019-06-04 14:02:54 UTC
See also Bug 408134.
Comment 2 Matthieu Gallien 2019-06-04 14:12:52 UTC
Thanks for your report.
Comment 3 Nate Graham 2020-11-11 19:01:24 UTC
*** Bug 419331 has been marked as a duplicate of this bug. ***
Comment 4 Matthieu Gallien 2020-11-17 15:21:16 UTC
Thanks for the detailed instructions to reproduce this.

I will work on a fix. I can easily reproduce it.
Comment 5 Bug Janitor Service 2020-11-18 13:39:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/190
Comment 6 Matthieu Gallien 2020-11-18 15:51:30 UTC
Git commit 30f23ab531c7bbee8b8aaec2b8311f0217bd53cc by Matthieu Gallien.
Committed on 18/11/2020 at 13:31.
Pushed by ngraham into branch 'release/20.12'.

forget the saved position withing a track when switching to another one

fix wrong initial position at startup if previous session had pause set
and was playing a different track

M  +2    -0    src/audiowrapper_libvlc.cpp

https://invent.kde.org/multimedia/elisa/commit/30f23ab531c7bbee8b8aaec2b8311f0217bd53cc