unmute webkit streams when rewoking playback rights 84/17384/1
authorJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 6 Mar 2014 14:27:05 +0000 (16:27 +0200)
committerJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 6 Mar 2014 14:27:05 +0000 (16:27 +0200)
Change-Id: If8717938f0be2dddd538dd51b3383cd29955d5ca

murphy/stream-state.c

index c87b78c..1517c39 100644 (file)
@@ -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);