From dc7431e70b4b030b5f42d0dfc3ef244d4f583dd2 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 23 Apr 2012 11:21:47 -0700 Subject: Make sure NuMediaExtractor is thread safe. Change-Id: If261c4d87d5569a0d7cfd75afe311803a6ce0109 --- include/media/stagefright/NuMediaExtractor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/media/stagefright/NuMediaExtractor.h b/include/media/stagefright/NuMediaExtractor.h index d46ce36..e197134 100644 --- a/include/media/stagefright/NuMediaExtractor.h +++ b/include/media/stagefright/NuMediaExtractor.h @@ -22,6 +22,7 @@ #include #include #include +#include #include namespace android { @@ -81,6 +82,8 @@ private: uint32_t mTrackFlags; // bitmask of "TrackFlags" }; + mutable Mutex mLock; + sp mDataSource; sp mImpl; -- cgit v1.1