summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/MediaSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-06-29 15:53:28 -0700
committerAndreas Huber <andih@google.com>2011-07-01 09:28:51 -0700
commit0bb6b4c5da2451ee0973372b0a3858b15c742689 (patch)
tree968bcc86bf7c08aa943b4eb2286921dac8e7fbe0 /include/media/stagefright/MediaSource.h
parentcebcdaef5b559f4db2a9d8b305d9d7da03525b62 (diff)
downloadframeworks_av-0bb6b4c5da2451ee0973372b0a3858b15c742689.zip
frameworks_av-0bb6b4c5da2451ee0973372b0a3858b15c742689.tar.gz
frameworks_av-0bb6b4c5da2451ee0973372b0a3858b15c742689.tar.bz2
Support a "secure input buffer" mode for use by Widevine DRM in OMXCodec.
Change-Id: Ie03b285265099dbac9b12f3f41d9ad758d0b50ad
Diffstat (limited to 'include/media/stagefright/MediaSource.h')
-rw-r--r--include/media/stagefright/MediaSource.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaSource.h b/include/media/stagefright/MediaSource.h
index a31395e..37dbcd8 100644
--- a/include/media/stagefright/MediaSource.h
+++ b/include/media/stagefright/MediaSource.h
@@ -22,6 +22,7 @@
#include <media/stagefright/MediaErrors.h>
#include <utils/RefBase.h>
+#include <utils/Vector.h>
namespace android {
@@ -99,6 +100,15 @@ struct MediaSource : public RefBase {
return ERROR_UNSUPPORTED;
}
+ // The consumer of this media source requests that the given buffers
+ // are to be returned exclusively in response to read calls.
+ // This will be called after a successful start() and before the
+ // first read() call.
+ // Callee assumes ownership of the buffers if no error is returned.
+ virtual status_t setBuffers(const Vector<MediaBuffer *> &buffers) {
+ return ERROR_UNSUPPORTED;
+ }
+
protected:
virtual ~MediaSource();