Fix media session action handling

This commit is contained in:
Fernando Jiménez Moreno 2019-11-12 22:09:39 +01:00
parent 9da1dd3592
commit b048d7faf7
9 changed files with 54 additions and 121 deletions

View file

@ -714,8 +714,8 @@ where
}
},
WindowEvent::MediaSessionAction(ctx, a) => {
let msg = ConstellationMsg::MediaSessionAction(ctx, a);
WindowEvent::MediaSessionAction(a) => {
let msg = ConstellationMsg::MediaSessionAction(a);
if let Err(e) = self.constellation_chan.send(msg) {
warn!(
"Sending MediaSessionAction message to constellation failed ({:?}).",