Merge "stagefright: stop audio encoding before releasing writer thread"

gugelfrei
Hangyu Kuang 5 years ago committed by Android (Google) Code Review
commit 9ffb82eb80

@ -154,11 +154,11 @@ status_t AACWriter::reset() {
mDone = true;
void *dummy;
status_t status = mSource->stop();
pthread_join(mThread, &dummy);
status_t err = static_cast<status_t>(reinterpret_cast<uintptr_t>(dummy));
{
status_t status = mSource->stop();
if (err == OK &&
(status != OK && status != ERROR_END_OF_STREAM)) {
err = status;

@ -149,11 +149,11 @@ status_t AMRWriter::reset() {
mDone = true;
void *dummy;
status_t status = mSource->stop();
pthread_join(mThread, &dummy);
status_t err = static_cast<status_t>(reinterpret_cast<uintptr_t>(dummy));
{
status_t status = mSource->stop();
if (err == OK &&
(status != OK && status != ERROR_END_OF_STREAM)) {
err = status;

Loading…
Cancel
Save