set mute after volume change
This commit is contained in:
parent
3714c70891
commit
de685eb2bb
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ impl Video {
|
|||
/// This uses a linear scale, for example `0.5` is perceived as half as loud.
|
||||
pub fn set_volume(&mut self, volume: f64) {
|
||||
self.0.get_mut().source.set_property("volume", volume);
|
||||
self.set_muted(self.muted()); // for some reason gstreamer unmutes when changing volume?
|
||||
}
|
||||
|
||||
/// Get the volume multiplier of the audio.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue