diff options
author | Andreas Huber <andih@google.com> | 2012-04-23 11:21:47 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-04-23 11:21:47 -0700 |
commit | dc7431e70b4b030b5f42d0dfc3ef244d4f583dd2 (patch) | |
tree | 74201c84c06f59e3c431e90449abd19a4c2f798e /include | |
parent | 0818e739bdbcf16f6dfb21d507002ceaaf664ee4 (diff) | |
download | frameworks_av-dc7431e70b4b030b5f42d0dfc3ef244d4f583dd2.zip frameworks_av-dc7431e70b4b030b5f42d0dfc3ef244d4f583dd2.tar.gz frameworks_av-dc7431e70b4b030b5f42d0dfc3ef244d4f583dd2.tar.bz2 |
Make sure NuMediaExtractor is thread safe.
Change-Id: If261c4d87d5569a0d7cfd75afe311803a6ce0109
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/NuMediaExtractor.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <utils/KeyedVector.h> #include <utils/RefBase.h> #include <utils/String8.h> +#include <utils/threads.h> #include <utils/Vector.h> namespace android { @@ -81,6 +82,8 @@ private: uint32_t mTrackFlags; // bitmask of "TrackFlags" }; + mutable Mutex mLock; + sp<DataSource> mDataSource; sp<MediaExtractor> mImpl; |