mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1221228 - Work around busted OpenSL causing hangs/reboots on Android r=padenot
This commit is contained in:
parent
c33a15997e
commit
f15ace1296
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user