Bug 1221228 - Work around busted OpenSL causing hangs/reboots on Android r=padenot

This commit is contained in:
James Willcox 2015-11-12 14:52:42 -06:00
parent c33a15997e
commit f15ace1296

View File

@ -641,6 +641,9 @@ opensl_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_name
return CUBEB_ERROR;
}
// Work around wilhelm/AudioTrack badness, bug 1221228
(*stm->play)->SetMarkerPosition(stm->play, (SLmillisecond)0);
res = (*stm->play)->SetCallbackEventsMask(stm->play, (SLuint32)SL_PLAYEVENT_HEADATMARKER);
if (res != SL_RESULT_SUCCESS) {
opensl_stream_destroy(stm);