From 45638be80d83d7d2ec9b92c78674e0902ea738bc Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Thu, 6 Mar 2014 16:27:05 +0200 Subject: [PATCH] unmute webkit streams when rewoking playback rights Change-Id: If8717938f0be2dddd538dd51b3383cd29955d5ca --- murphy/stream-state.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/murphy/stream-state.c b/murphy/stream-state.c index c87b78c..1517c39 100644 --- a/murphy/stream-state.c +++ b/murphy/stream-state.c @@ -191,9 +191,15 @@ static void sink_input_block(struct userdata *u, if (sinp->send_event) { if (block) event = PA_STREAM_EVENT_REQUEST_CORK; - else + else { event = PA_STREAM_EVENT_REQUEST_UNCORK; - + /* Do this because webkit might set */ + /* stream to mute. This hack might */ + /* cause issues if web app user has */ + /* set explicit mute. */ + pa_sink_input_set_mute(sinp, false, false); + } + pl = pa_proplist_new(); sinp->send_event(sinp, event, pl); -- 2.7.4