Skip to content

Instantly share code, notes, and snippets.

@pawitp
Created April 24, 2013 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pawitp/5449655 to your computer and use it in GitHub Desktop.
Save pawitp/5449655 to your computer and use it in GitHub Desktop.
From 0bbd9e8b361a761d858a2ffe53d60d234a938654 Mon Sep 17 00:00:00 2001
From: Pawit Pornkitprasan <p.pawit@gmail.com>
Date: Wed, 24 Apr 2013 11:37:19 +0700
Subject: [PATCH] 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 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;
}
--
1.7.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment