Merge "MediaPlayer2: fix a regression from I5d4884353057a195b1f587694"

This commit is contained in:
TreeHugger Robot
2018-09-12 16:58:21 +00:00
committed by Android (Google) Code Review

View File

@@ -1014,7 +1014,11 @@ android_media_MediaPlayer2_invoke(JNIEnv *env, jobject thiz, jbyteArray requestD
PlayerMessage response;
request.ParseFromArray(pData, pDataLen);
media_player->invoke(request, &response);
process_media_player_call( env, thiz, media_player->invoke(request, &response),
"java.lang.RuntimeException", NULL );
if (env->ExceptionCheck()) {
return NULL;
}
int size = response.ByteSize();
jbyte* temp = new jbyte[size];