mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataType.cpp
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataType.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioRecorderTestModule/src/RecordDataType.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -107,11 +107,7 @@
CleanupStack::PushL(selfObj);
CActiveScheduler::Start();
-
- if(selfObj->callbackErr != KErrNone)
- {
- error = selfObj->callbackErr;
- }
+
CleanupStack::PopAndDestroy(2); // schedule, selfObj
@@ -141,8 +137,8 @@
#ifdef _DEBUG
RDebug::Print (_L ("CRecordDataType::MoscoStateChangeEvent"));
#endif
-
- callbackErr = aErrorCode;
+ TInt err = KErrNone;
+ callbackErr = KErrNone;
RArray<TFourCC> dataTypes;
logger->Log(_L("MoscoStateChangeEvent called, error: %d prev: %d curr : %d"),aErrorCode,aPreviousState,aCurrentState);
@@ -211,11 +207,7 @@
CActiveScheduler::Stop();
}
- if (aErrorCode != KErrNone)
- {
- CActiveScheduler::Stop();
-
- }
+
return;