Skip to content

Commit

Permalink
android/OpenSLES: return -1 if failed to open.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbcallen committed May 11, 2016
1 parent 85cf4fb commit 5737ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ijkmedia/ijksdl/android/ijksdl_aout_android_opensles.c
Expand Up @@ -430,7 +430,7 @@ static int aout_open_audio(SDL_Aout *aout, const SDL_AudioSpec *desired, SDL_Aud
return opaque->buffer_capacity;
fail:
aout_close_audio(aout);
return 0;
return -1;
}

static void aout_pause_audio(SDL_Aout *aout, int pause_on)
Expand Down

0 comments on commit 5737ccc

Please sign in to comment.