summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-02 20:08:11 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-02 20:08:11 +0200
commit04fcf6384e2415e2eedc3b8caad442f455632655 (patch)
tree81ff4028266744a350e61bea3f8260b725204e90 /streamer.c
parentb546cdfecc077961205728e4be0af72c23a9d53d (diff)
added new option to reset "stop after current" option every time the track was auto-stopped
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 3ab72a26..737354a2 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1158,6 +1158,10 @@ streamer_next (int bytesread) {
if (conf_get_int ("playlist.stop_after_current", 0)) {
streamer_buffering = 0;
streamer_set_nextsong (-2, -2);
+ if (conf_get_int ("playlist.stop_after_current_reset", 0)) {
+ conf_set_int ("playlist.stop_after_current", 0);
+ deadbeef->sendmessage (DB_EV_CONFIGCHANGED, 0, 0, 0);
+ }
}
else {
streamer_move_to_nextsong (0);