summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-11-10 21:11:41 -0800
committerJames Dong <jdong@google.com>2010-11-11 11:26:16 -0800
commitf23c4f92c3b0202435cf87db2642156fabc46f02 (patch)
tree49bc805b33eabf2cc39bb5c39d780d050bce3347 /include
parent5f0cb5c62553125715dbbb171f0b81e4b7c6d6ac (diff)
downloadframeworks_av-f23c4f92c3b0202435cf87db2642156fabc46f02.zip
frameworks_av-f23c4f92c3b0202435cf87db2642156fabc46f02.tar.gz
frameworks_av-f23c4f92c3b0202435cf87db2642156fabc46f02.tar.bz2
Fix memory leak when 0-memcpy quirk is used
o minor change to the original patch by Andreas: call restorePatchedDataPointer() method only if kAvoidMemcopyInputRecordingFrames is turned on Change-Id: Idf3710e6f759d37d28e866613f98d39215722cb9
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/OMXCodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 517868c..6c511dd 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -293,6 +293,8 @@ private:
uint32_t flags,
Vector<String8> *matchingCodecs);
+ void restorePatchedDataPointer(BufferInfo *info);
+
OMXCodec(const OMXCodec &);
OMXCodec &operator=(const OMXCodec &);
};