Commit 4d0ec22c authored by Jean-Paul Saman's avatar Jean-Paul Saman

Return when found, return error when setting failed.:

parent 3d411bb1
......@@ -248,8 +248,12 @@ void libvlc_audio_set_channel( libvlc_instance_t *p_instance, char *psz_channel,
i_ret = var_Set( p_aout, "audio-channels", val );
if( i_ret < 0 )
{
break;
libvlc_exception_raise( p_e, "failed setting audio range" );
vlc_object_release( p_aout );
return;
}
vlc_object_release( p_aout );
return; /* Found */
}
}
libvlc_exception_raise( p_e, "Audio channel out of range" );
......
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