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

doVolumeChanges: always return the value

This fixes, e.g. garbage OSD display when toggling mute with the hotkey.
parent 51292426
......@@ -150,9 +150,6 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps,
i_volume = AOUT_VOLUME_MIN;
else
i_volume = i_new_volume;
if ( i_return_volume != NULL )
*i_return_volume = i_volume;
}
var_Create( p_object->p_libvlc, "saved-volume", VLC_VAR_INTEGER );
......@@ -187,6 +184,8 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps,
vlc_object_release( p_aout );
}
if ( i_return_volume != NULL )
*i_return_volume = i_volume;
return i_result;
}
......
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