mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Fix player volume comparison
This commit is contained in:
@@ -462,8 +462,11 @@ var Widget = GObject.registerClass({
|
|||||||
|
|
||||||
_onPlayerVolumeChanged(player)
|
_onPlayerVolumeChanged(player)
|
||||||
{
|
{
|
||||||
|
/* FIXME: This check should not be needed, GstPlayer should not
|
||||||
|
* emit 'volume-changed' with the same values. It needs to be
|
||||||
|
* fixed inside GStreamer GstPlayer API */
|
||||||
let volume = Number(player.get_volume().toFixed(2));
|
let volume = Number(player.get_volume().toFixed(2));
|
||||||
if(volume === this.currentVolume)
|
if(volume === this.controls.currentVolume)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.controls.currentVolume = volume;
|
this.controls.currentVolume = volume;
|
||||||
|
Reference in New Issue
Block a user