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

libvlc_audio_set_track: return -1 on error

Surprisingly, my gcc did not generate a possible unitilization warning.
(cherry picked from commit ce96ee78f58c6d24eb66d5544b571cc3d0aa4343)
parent 22309432
...@@ -399,7 +399,7 @@ int libvlc_audio_set_track( libvlc_media_player_t *p_mi, int i_track ) ...@@ -399,7 +399,7 @@ int libvlc_audio_set_track( libvlc_media_player_t *p_mi, int i_track )
{ {
input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi ); input_thread_t *p_input_thread = libvlc_get_input_thread( p_mi );
vlc_value_t val_list; vlc_value_t val_list;
int i_ret; int i_ret = -1;
if( !p_input_thread ) if( !p_input_thread )
return -1; return -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