reset rewind_requested when we enter suspend mode

This commit is contained in:
Lennart Poettering 2009-02-02 00:46:11 +01:00
parent a9e9ab32a2
commit 537424a9a9

View 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: