Commit e1796f3f authored by Mario Speiß's avatar Mario Speiß Committed by Rafaël Carré

Cosmetics: DirectX now sets maximum volume without returning an error.

Before it returned -1 when volume was set to 100% so OSD never showed the
'Volume: 100%' message.

Regards,
Mario
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent c3abb59f
......@@ -537,7 +537,7 @@ static int VolumeSet( audio_output_t *p_aout, float vol )
/* Clamp to allowed DirectSound range */
static_assert( DSBVOLUME_MIN < DSBVOLUME_MAX, "DSBVOLUME_* confused" );
if( mb >= DSBVOLUME_MAX )
if( mb > DSBVOLUME_MAX )
{
mb = DSBVOLUME_MAX;
ret = -1;
......
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