summaryrefslogtreecommitdiffstats
path: root/media/tools/omx_test
diff options
context:
space:
mode:
authorjiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 19:24:24 +0000
committerjiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 19:24:24 +0000
commit55683e21a68a2c0df23c126c4a002054bad5725d (patch)
tree787e82686dffceaac8d0f2b54a1d8a20fdb1510c /media/tools/omx_test
parentce4e83804af1a9f22ec3b23abae603ea3f759b52 (diff)
downloadchromium_src-55683e21a68a2c0df23c126c4a002054bad5725d.zip
chromium_src-55683e21a68a2c0df23c126c4a002054bad5725d.tar.gz
chromium_src-55683e21a68a2c0df23c126c4a002054bad5725d.tar.bz2
media: OMX seek works for OMX_HEADBUFFERTYPE now.
1. Promote Stop() to engine interafce and make it Asynchronous. 2. Add Pause() and Flush() in engine interface. 3. Notify buffer return in ffmpeg engine so that future recycling could use it. 4. Add Pause logic in OMX decode engine. to fully support seek in hardware path, some pipeline work and video render work is required. that will be in the next patch (maybe jia will write it). 1. some renderer hack is required for now. but current pause model of videoRenderBase is not suitable for hardware case. we need to resolve that. 2. Seek after EOS is not supported. 3. Seek for EGL image path is not yet tested, some code is required to return EGLImage buffer to allocator's side. Review URL: http://codereview.chromium.org/2808022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools/omx_test')
-rw-r--r--media/tools/omx_test/omx_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/tools/omx_test/omx_test.cc b/media/tools/omx_test/omx_test.cc
index 2b39fee..9a185e6 100644
--- a/media/tools/omx_test/omx_test.cc
+++ b/media/tools/omx_test/omx_test.cc
@@ -126,9 +126,9 @@ class TestApp : public base::RefCountedThreadSafe<TestApp> {
if (!frame_count_)
first_sample_delivered_time_ = base::TimeTicks::HighResNow();
- // If we are readding to the end, then stop.
+ // If we are reading to the end, then stop.
if (frame->IsEndOfStream()) {
- engine_->Stop(NewCallback(this, &TestApp::StopCallback));
+ engine_->Stop(NewRunnableMethod(this, &TestApp::StopCallback));
return;
}