From efbeb9b4023b28ad4fea5f1a611e503336d2f419 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 19 Jan 2012 14:17:49 -0800 Subject: [PATCH] Make sure the ThrottledSource reports the proper mime type of the underlying source. Change-Id: I7cfd5c9f10d4b07781ed82fbdc9bf3db2e86cf84 --- media/libstagefright/include/ThrottledSource.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/media/libstagefright/include/ThrottledSource.h b/media/libstagefright/include/ThrottledSource.h index 8928a4a6549c0..7fe7c0676c558 100644 --- a/media/libstagefright/include/ThrottledSource.h +++ b/media/libstagefright/include/ThrottledSource.h @@ -35,6 +35,11 @@ struct ThrottledSource : public DataSource { virtual status_t getSize(off64_t *size); virtual uint32_t flags(); + virtual String8 getMIMEType() const { + return mSource->getMIMEType(); + } + + private: Mutex mLock;