summaryrefslogtreecommitdiffstats
path: root/apps/playback.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-23 10:48:50 +0100
committerThomas Martitz <kugel@rockbox.org>2012-03-25 22:28:07 +0200
commit82337dda6a7bf02b3570acd6570aa8c7c328ab3c (patch)
treec6cf430f1e21bd1403d20bda538110cc75bdcd71 /apps/playback.c
parentced3b172a11005a44c5241795dd8cc19f9de37fb (diff)
downloadrockbox-82337dda6a7bf02b3570acd6570aa8c7c328ab3c.tar.gz
rockbox-82337dda6a7bf02b3570acd6570aa8c7c328ab3c.tar.bz2
rockbox-82337dda6a7bf02b3570acd6570aa8c7c328ab3c.zip
buflib/shrink_callback: Resume playback only if it was playing (not paused).
Change-Id: Ie4884ec4554890f8bdb03f48bcf215ece00a5560
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 28f664357c..100558177e 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -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 */
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
* frequent fashion, the codecs lose the resume postion and playback
* begins from the beginning.