From c95c2ddcdfc974f42408a377fbe2de51b94a8c94 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 28 Feb 2012 15:54:51 -0800 Subject: Separate the notion of "stop" from that of "release", i.e. stop - means transition back to LOADED state and keeping the component instance allocated. release - means we get rid of the component completely. Change-Id: I40ad01ce70821faaad43f57999249904f9144924 --- cmds/stagefright/SimplePlayer.cpp | 2 +- cmds/stagefright/codec.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds') diff --git a/cmds/stagefright/SimplePlayer.cpp b/cmds/stagefright/SimplePlayer.cpp index f269e80..fac3a8c 100644 --- a/cmds/stagefright/SimplePlayer.cpp +++ b/cmds/stagefright/SimplePlayer.cpp @@ -396,7 +396,7 @@ status_t SimplePlayer::onReset() { for (size_t i = 0; i < mStateByTrackIndex.size(); ++i) { CodecState *state = &mStateByTrackIndex.editValueAt(i); - CHECK_EQ(state->mCodec->stop(), (status_t)OK); + CHECK_EQ(state->mCodec->release(), (status_t)OK); } mStartTimeRealUs = -1ll; diff --git a/cmds/stagefright/codec.cpp b/cmds/stagefright/codec.cpp index b850190..fbf800c 100644 --- a/cmds/stagefright/codec.cpp +++ b/cmds/stagefright/codec.cpp @@ -295,7 +295,7 @@ static int decode( for (size_t i = 0; i < stateByTrack.size(); ++i) { CodecState *state = &stateByTrack.editValueAt(i); - CHECK_EQ((status_t)OK, state->mCodec->stop()); + CHECK_EQ((status_t)OK, state->mCodec->release()); } return 0; -- cgit v1.1