fix deadlock when pausing video

This commit is contained in:
rabite 2020-05-25 16:45:24 +02:00
parent 44baece00f
commit a13a427a68
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ impl MediaView {
}
pub fn toggle_autoplay(&self) {
*AUTOPLAY.write() = !*AUTOPLAY.read();
*AUTOPLAY.write() = !self.autoplay()
}
pub fn toggle_mute(&self) {