From 0bbd9e8b361a761d858a2ffe53d60d234a938654 Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Wed, 24 Apr 2013 11:37:19 +0700 Subject: 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 --- media/libstagefright/OMXCodec.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.1