Playback fails if Exaile was set to auto-resume with an empty playlist

Bug #406400 reported by Steve Dodier-Lazaro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Critical
Unassigned

Bug Description

Exaile 0.3.0bzr trunk, post bugday

If you set exaile to auto resume playback but close it without any song in the playlist, then playback will not work the next time you open it (more accurately there will be no sound).

This is due to the playback restore function that doesn't notice the current track isn't in the playlist.

Revision history for this message
reacocard (reacocard) wrote :

I can't verify this in current trunk on either playback engine, is this issue still happening?

Changed in exaile:
status: Confirmed → Incomplete
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote : Re: [Bug 406400] Re: Playback fails if Exaile was set to auto-resume with an empty playlist

The same issue keeps happening under the very same conditions.

Revision history for this message
unmacaque (unmacaque) wrote :

Confirming this is still an issue in the latest bzr revision (2396).

Steps to reproduce:
Make sure "Resume playback on start" is enabled and "Open last playlist on startup" is disabled.
1. Play ANY file in any way (library, etc.)
2. While the file is still playing, close Exaile
3. Open Exaile again, play ANY file (does not need to be the same)

It appears that the file is being played but no sound is to be heared. If you slightly move the volume slider, the sound will be there again.

Changed in exaile:
status: Incomplete → Confirmed
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

The problem is coming from the fact that the volume of the xl/player is set to 0, then the playback is restored, and then the volume is set to it's actual value. But if the playback can't be restored, we return from the restore_playback function with the volume set to 0, while the GUI's volume slider shows the volume that is meant to be set.

My patch fixes this by directly putting the volume to it's value. If there was a reason while it wasn't working that way before, please add a comment to the source and I'll find another way to fix this.

Changed in exaile:
status: Confirmed → In Progress
assignee: nobody → Steve Dodier (sidi)
Revision history for this message
reacocard (reacocard) wrote :

The reason we don't set it directly is so that if we have to seek within the file, users dont get a brief bit of music from the beginning of the file when that happens. I've committed a fix for this in r2428 that should have the same effect as your patch.

Changed in exaile:
assignee: Steve Dodier (sidi) → nobody
milestone: 0.3.0 → 0.3.0.1
status: In Progress → Fix Committed
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.