Permalink
Browse files

buflib/shrink_callback: Resume playback only if it was playing (not p…

…aused).

Change-Id: Ie4884ec4554890f8bdb03f48bcf215ece00a5560
  • Loading branch information...
kugel- committed Mar 23, 2012
1 parent ced3b17 commit 82337dda6a7bf02b3570acd6570aa8c7c328ab3c
Showing with 2 additions and 1 deletion.
  1. +2 −1 apps/playback.c
View
@@ -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.

0 comments on commit 82337dd

Please sign in to comment.