am 7629e8dd: Merge "Fix issue 2876124." into gingerbread
Merge commit '7629e8dd1426a8a8e38a82e13eb51d1c6af24f36' into gingerbread-plus-aosp * commit '7629e8dd1426a8a8e38a82e13eb51d1c6af24f36': Fix issue 2876124.
This commit is contained in:
@@ -568,7 +568,8 @@ void MediaPlayer::notify(int msg, int ext1, int ext2)
|
|||||||
locked = true;
|
locked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mPlayer == 0) {
|
// Allows calls from JNI in idle state to notify errors
|
||||||
|
if (!(msg == MEDIA_ERROR && mCurrentState == MEDIA_PLAYER_IDLE) && mPlayer == 0) {
|
||||||
LOGV("notify(%d, %d, %d) callback on disconnected mediaplayer", msg, ext1, ext2);
|
LOGV("notify(%d, %d, %d) callback on disconnected mediaplayer", msg, ext1, ext2);
|
||||||
if (locked) mLock.unlock(); // release the lock when done.
|
if (locked) mLock.unlock(); // release the lock when done.
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user