History log of /frameworks/av/media/libstagefright/MediaAdapter.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1889c3edad32995c0cf26ae2248fe7c957b7ec84 01-Feb-2018 Dongwon Kang <dwkang@google.com> Add MediaBufferBase and use it in MediaSource and MediaBufferGroup.

MediaBuffer class exposes internal classes, ABuffer and IMemory, which
we don't want to expose to plugins. This change introduces
MediaBufferBase which does not expose any classes from system library.

Test: build and post-submit media cts tests
Bug: 67908556
Change-Id: Ic9ee239caf9b84b2b3740e2d533257afa25c8784
/frameworks/av/media/libstagefright/MediaAdapter.cpp
2531d69cb24ec43cca4070088cfbc75e2e09ab11 13-Dec-2017 Chong Zhang <chz@google.com> muxer: set observer before we start waiting for read

If nobody ever reads the buffer before stop is called,
MediaAdapter will go ahead and release mCurrentMediaBuffer.
If it doesn't have an observer set, it will crash as it
does have a refcount of 1.

This can happen when the writer thread encountered an
error and calls stop early, in this case it will never
read the pending buffer.

bug: 70348810

Test:

- CTS MediaRecorderTest, MediaMuxerTest
- Hacked framework to produce a similar crash as in
b/70348810 and verified no crash in stagefright.

Change-Id: Ia2017e6a13fca279c9603afe53ab6013b9c669f5
/frameworks/av/media/libstagefright/MediaAdapter.cpp
84333e0475bc911adc16417f4ca327c975cf6c36 08-Feb-2014 Andreas Huber <andih@google.com> warnings be gone.

Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
/frameworks/av/media/libstagefright/MediaAdapter.cpp
4f1732b8068970b368a89271158ca29daf25650e 05-Feb-2013 ztenghui <ztenghui@google.com> Add the native MediaMuxer support.

MediaAdapter: a helper class to convert the push model to pull model.
MediaMuxer: the real muxer.

bug:7991013

Change-Id: If3b79551bc6332bc81f5c2740885e579a5c4abf9
/frameworks/av/media/libstagefright/MediaAdapter.cpp