From 94edc18bdeb3a4a1e044ee81bb1f64ccb31c4a8e Mon Sep 17 00:00:00 2001 From: Edwin Wong Date: Tue, 15 Nov 2011 09:45:56 -0800 Subject: [PATCH] Fixed session not terminated when bandwidth goes below the supported encoded bitrate (preload error). Change-Id: Ib7bddaaaac7d48df7f18fab0c5d486624abe3119 related-to-bug: 5564453 --- proprietary/wvm/WVMExtractorImpl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/proprietary/wvm/WVMExtractorImpl.cpp b/proprietary/wvm/WVMExtractorImpl.cpp index 18029102..8b27adc3 100644 --- a/proprietary/wvm/WVMExtractorImpl.cpp +++ b/proprietary/wvm/WVMExtractorImpl.cpp @@ -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);