reset rewind_requested when we enter suspend mode
authorLennart Poettering <lennart@poettering.net>
Sun, 1 Feb 2009 23:46:11 +0000 (00:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 1 Feb 2009 23:46:11 +0000 (00:46 +0100)
src/pulsecore/sink.c

index b149bb6..aa79b4a 100644 (file)
@@ -1519,6 +1519,10 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
         case PA_SINK_MESSAGE_SET_STATE:
 
             s->thread_info.state = PA_PTR_TO_UINT(userdata);
+
+            if (s->thread_info.state == PA_SINK_SUSPENDED)
+                s->thread_info.rewind_requested = FALSE;
+
             return 0;
 
         case PA_SINK_MESSAGE_DETACH: