From 31b9375f45e19c1408f45af497286b795604c9ec Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 10 Nov 2010 21:11:41 -0800 Subject: 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 --- include/media/stagefright/OMXCodec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 *matchingCodecs); + void restorePatchedDataPointer(BufferInfo *info); + OMXCodec(const OMXCodec &); OMXCodec &operator=(const OMXCodec &); }; -- cgit v1.1