mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 20:53:19 -05:00
[player] Save seek position more often
Makes it possible for the user to resume playback from the correct position if for instance the speaker disconnects -> pb_abort is called.
This commit is contained in:
parent
153eb40b6d
commit
d3fb451960
@ -1666,6 +1666,8 @@ pb_session_pause(void)
|
||||
{
|
||||
pb_timer_stop();
|
||||
|
||||
seek_save();
|
||||
|
||||
source_stop();
|
||||
}
|
||||
|
||||
@ -1675,6 +1677,8 @@ pb_session_stop(void)
|
||||
{
|
||||
pb_timer_stop();
|
||||
|
||||
seek_save();
|
||||
|
||||
source_stop();
|
||||
|
||||
session_stop();
|
||||
@ -2347,8 +2351,6 @@ playback_pause_bh(void *arg, int *retval)
|
||||
|
||||
status_update(PLAY_PAUSED);
|
||||
|
||||
seek_save();
|
||||
|
||||
*retval = 0;
|
||||
return COMMAND_END;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user