summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2013-04-24 11:37:19 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2013-04-24 11:37:19 +0700
commit0bbd9e8b361a761d858a2ffe53d60d234a938654 (patch)
tree7d7084f6623a1828399fa4242f8a9a9b170ffdc7
parent563e6d41543e422812c0cf7a3823b0a22341b28a (diff)
downloadframeworks_av-0bbd9e8b361a761d858a2ffe53d60d234a938654.zip
frameworks_av-0bbd9e8b361a761d858a2ffe53d60d234a938654.tar.gz
frameworks_av-0bbd9e8b361a761d858a2ffe53d60d234a938654.tar.bz2
OMXCodec: Re-implement requires-flush-before-shutdown quirk
Support is already there, but is not in the codec quirk reading list. Re-implement it as required by Broadcom's OMX Change-Id: I1beac06af8118dcf0c248b631bc8e6dbbab2c1d5
-rw-r--r--media/libstagefright/OMXCodec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index c149379..26989c1 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -315,6 +315,10 @@ uint32_t OMXCodec::getComponentQuirks(
quirks |= kRequiresAllocateBufferOnOutputPorts;
}
if (list->codecHasQuirk(
+ index, "requires-flush-before-shutdown")) {
+ quirks |= kRequiresFlushBeforeShutdown;
+ }
+ if (list->codecHasQuirk(
index, "output-buffers-are-unreadable")) {
quirks |= kOutputBuffersAreUnreadable;
}