summaryrefslogtreecommitdiffstats
path: root/include/media/MediaMetadataRetrieverInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/MediaMetadataRetrieverInterface.h')
-rw-r--r--include/media/MediaMetadataRetrieverInterface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/MediaMetadataRetrieverInterface.h b/include/media/MediaMetadataRetrieverInterface.h
index 38dbb20..df6c7d6 100644
--- a/include/media/MediaMetadataRetrieverInterface.h
+++ b/include/media/MediaMetadataRetrieverInterface.h
@@ -25,7 +25,8 @@
namespace android {
-struct IMediaHTTPService;
+class DataSource;
+class IMediaHTTPService;
// Abstract base class
class MediaMetadataRetrieverBase : public RefBase
@@ -40,6 +41,7 @@ public:
const KeyedVector<String8, String8> *headers = NULL) = 0;
virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
+ virtual status_t setDataSource(const sp<DataSource>& source) = 0;
virtual VideoFrame* getFrameAtTime(int64_t timeUs, int option) = 0;
virtual MediaAlbumArt* extractAlbumArt() = 0;
virtual const char* extractMetadata(int keyCode) = 0;