summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-02-02 00:46:11 +0100
committerLennart Poettering <lennart@poettering.net>2009-02-02 00:46:11 +0100
commit537424a9a9fb8c3fbc930a70874c0983b6c5d1a3 (patch)
treee7b61a5f39c471ca42634d274c214179b319b951 /src/pulsecore/sink.c
parenta9e9ab32a280956a29a82876f121d7409705818b (diff)
reset rewind_requested when we enter suspend mode
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r--src/pulsecore/sink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index b149bb6e..aa79b4a4 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -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: