From 82337dda6a7bf02b3570acd6570aa8c7c328ab3c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 23 Mar 2012 10:48:50 +0100 Subject: buflib/shrink_callback: Resume playback only if it was playing (not paused). Change-Id: Ie4884ec4554890f8bdb03f48bcf215ece00a5560 --- apps/playback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit