Commit 3c802605 authored by Led's avatar Led

0.9.2-rc2

parent 4b5e4c06
...@@ -761,6 +761,14 @@ int setPlaylistRepeatStatus(FILE * fp, int status) { ...@@ -761,6 +761,14 @@ int setPlaylistRepeatStatus(FILE * fp, int status) {
return -1; return -1;
} }
if(playlist_state==PLAYLIST_STATE_PLAY) {
if(playlist.repeat && !status && playlist.queued==0) {
lockPlaylistInteraction();
clearPlayerQueue();
unlockPlaylistInteraction();
}
}
playlist.repeat = status; playlist.repeat = status;
return 0; return 0;
...@@ -844,7 +852,7 @@ void orderPlaylist() { ...@@ -844,7 +852,7 @@ void orderPlaylist() {
blockTermSignal(); blockTermSignal();
if(playlist_state==PLAYLIST_STATE_PLAY) { if(playlist_state==PLAYLIST_STATE_PLAY) {
if(playlist.queued>0) { if(playlist.queued>=0) {
lockPlaylistInteraction(); lockPlaylistInteraction();
clearPlayerQueue(); clearPlayerQueue();
unlockPlaylistInteraction(); unlockPlaylistInteraction();
...@@ -1168,7 +1176,7 @@ int seekSongInPlaylist(FILE * fp, int song, float time) { ...@@ -1168,7 +1176,7 @@ int seekSongInPlaylist(FILE * fp, int song, float time) {
playlist_errorCount = 0; playlist_errorCount = 0;
if(playlist_state == PLAYLIST_STATE_PLAY) { if(playlist_state == PLAYLIST_STATE_PLAY) {
if(playlist.queued>0) { if(playlist.queued>=0) {
lockPlaylistInteraction(); lockPlaylistInteraction();
clearPlayerQueue(); clearPlayerQueue();
unlockPlaylistInteraction(); unlockPlaylistInteraction();
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
int volume_mixerType = VOLUME_MIXER_TYPE_NULL; int volume_mixerType = VOLUME_MIXER_TYPE_NULL;
char * volume_mixerDevice; char * volume_mixerDevice;
#ifndef NO_OSSMIXER #ifndef NO_OSS_MIXER
int volume_ossFd; int volume_ossFd;
int volume_ossControl = SOUND_MIXER_VOLUME; int volume_ossControl = SOUND_MIXER_VOLUME;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment