Commit 3f169532 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins2: remove unneeded brittle hack to avoid callback loop

A more proper fix was made in 3567c033.
parent 8e8b8d7d
......@@ -46,15 +46,9 @@ Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
void Volume::set( float percentage, bool updateVLC )
{
// Avoid looping forever...
if( (int)(get() * AOUT_VOLUME_MAX) !=
(int)(percentage * AOUT_VOLUME_MAX) )
{
VarPercent::set( percentage );
if( updateVLC )
aout_VolumeSet( getIntf()->p_sys->p_playlist,
(int)(get() * m_volumeMax) );
}
VarPercent::set( percentage );
if( updateVLC )
aout_VolumeSet( getIntf()->p_sys->p_playlist, get() * m_volumeMax );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment