Fixed session not terminated when bandwidth goes below the supported encoded bitrate (preload error).

Change-Id: Ib7bddaaaac7d48df7f18fab0c5d486624abe3119
related-to-bug: 5564453
This commit is contained in:
Edwin Wong
2011-11-15 09:45:56 -08:00
parent e8951bc684
commit 94edc18bde

View File

@@ -154,9 +154,11 @@ void WVMExtractorImpl::Initialize()
if (result != WV_Status_OK) {
LOGE("WV_Setup returned status %d in WVMMediaSource::start\n", result);
mSetupStatus = ERROR_IO;
WV_Teardown(mSession);
mSession = NULL;
} else {
mInfoListener->setSession(mSession);
}
mInfoListener->setSession(mSession);
}
WV_SetWarningToErrorMS(10000);