diff options
| author | Andreas Huber <andih@google.com> | 2009-10-13 09:56:09 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-13 09:56:09 -0700 |
| commit | 9550e2892f88194c9abbb85616bb55db67231d6e (patch) | |
| tree | 82d72fe385ef6d35b325a6934f244c26c9e1d817 /include | |
| parent | 4d915e00dcf40143f9caf89fd8eeadd32a8cb6f4 (diff) | |
| parent | cfd55579c2e20514b181809dfaf30bd6f7e04c7e (diff) | |
| download | frameworks_base-9550e2892f88194c9abbb85616bb55db67231d6e.zip frameworks_base-9550e2892f88194c9abbb85616bb55db67231d6e.tar.gz frameworks_base-9550e2892f88194c9abbb85616bb55db67231d6e.tar.bz2 | |
am cfd55579: OMXCodec now notifies the reader of changes in the output format by returning a special result/error code.
Merge commit 'cfd55579c2e20514b181809dfaf30bd6f7e04c7e' into eclair-mr2-plus-aosp
* commit 'cfd55579c2e20514b181809dfaf30bd6f7e04c7e':
OMXCodec now notifies the reader of changes in the output format by returning a special result/error code.
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/stagefright/MediaErrors.h | 3 | ||||
| -rw-r--r-- | include/media/stagefright/MediaSource.h | 3 | ||||
| -rw-r--r-- | include/media/stagefright/OMXCodec.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaErrors.h b/include/media/stagefright/MediaErrors.h index 2bb0ed6..73d0f77 100644 --- a/include/media/stagefright/MediaErrors.h +++ b/include/media/stagefright/MediaErrors.h @@ -36,6 +36,9 @@ enum { ERROR_BUFFER_TOO_SMALL = MEDIA_ERROR_BASE - 9, ERROR_UNSUPPORTED = MEDIA_ERROR_BASE - 10, ERROR_END_OF_STREAM = MEDIA_ERROR_BASE - 11, + + // Not technically an error. + INFO_FORMAT_CHANGED = MEDIA_ERROR_BASE - 12, }; } // namespace android diff --git a/include/media/stagefright/MediaSource.h b/include/media/stagefright/MediaSource.h index d1fa114..96d57e7 100644 --- a/include/media/stagefright/MediaSource.h +++ b/include/media/stagefright/MediaSource.h @@ -51,6 +51,9 @@ struct MediaSource : public RefBase { // buffer is available, an error is encountered of the end of the stream // is reached. // End of stream is signalled by a result of ERROR_END_OF_STREAM. + // A result of INFO_FORMAT_CHANGED indicates that the format of this + // MediaSource has changed mid-stream, the client can continue reading + // but should be prepared for buffers of the new configuration. virtual status_t read( MediaBuffer **buffer, const ReadOptions *options = NULL) = 0; diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index ff7e34a..ec043a9 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -124,6 +124,7 @@ private: bool mInitialBufferSubmit; bool mSignalledEOS; bool mNoMoreOutputData; + bool mOutputPortSettingsHaveChanged; int64_t mSeekTimeUs; Mutex mLock; |
