mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
buflib/shrink_callback: Resume playback only if it was playing (not paused).
Change-Id: Ie4884ec4554890f8bdb03f48bcf215ece00a5560
This commit is contained in:
parent
ced3b172a1
commit
82337dda6a
1 changed files with 2 additions and 1 deletions
|
@ -855,7 +855,8 @@ static int shrink_callback(int handle, unsigned hints, void* start, size_t old_s
|
||||||
|
|
||||||
/* TODO: Do it without stopping playback, if possible */
|
/* TODO: Do it without stopping playback, if possible */
|
||||||
long offset = audio_current_track()->offset;
|
long offset = audio_current_track()->offset;
|
||||||
bool playing = (audio_status() & AUDIO_STATUS_PLAY) == AUDIO_STATUS_PLAY;
|
/* resume if playing */
|
||||||
|
bool playing = (audio_status() == AUDIO_STATUS_PLAY);
|
||||||
/* There's one problem with stoping and resuming: If it happens in a too
|
/* There's one problem with stoping and resuming: If it happens in a too
|
||||||
* frequent fashion, the codecs lose the resume postion and playback
|
* frequent fashion, the codecs lose the resume postion and playback
|
||||||
* begins from the beginning.
|
* begins from the beginning.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue