OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e184b0
)
MediaCodec: move to UNINITIALIZED state on codec error
author
Lajos Molnar
<lajos@google.com>
Mon, 31 Mar 2014 19:30:01 +0000
(12:30 -0700)
committer
Lajos Molnar
<lajos@google.com>
Tue, 1 Apr 2014 00:14:22 +0000
(17:14 -0700)
ACodec moves to Uninitialized state after receiving codec error.
Make MediaCodec also move to the same state, so stop() and
release() will work correctly.
Bug:
13675112
Change-Id: I1c7e8b274f68345fc0e6a55c70dff6c7a4fb2e72
media/libstagefright/MediaCodec.cpp
patch
|
blob
|
history
diff --git
a/media/libstagefright/MediaCodec.cpp
b/media/libstagefright/MediaCodec.cpp
index
e0419ca
..
601dccf
100644
(file)
--- a/
media/libstagefright/MediaCodec.cpp
+++ b/
media/libstagefright/MediaCodec.cpp
@@
-603,6
+603,7
@@
void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
postActivityNotificationIfPossible();
cancelPendingDequeueOperations();
+ setState(UNINITIALIZED);
break;
}
@@
-612,6
+613,7
@@
void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
mFlags |= kFlagStickyError;
postActivityNotificationIfPossible();
+ setState(UNINITIALIZED);
break;
}
}