# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1268649676 -7200 # Node ID 88688c05574c36c377a206c3fd471ccd688b6a1f # Parent 6bc4220d7f67945d3c97591693ce89ad3daba143 Revision: 201009 Kit: 201010 diff -r 6bc4220d7f67 -r 88688c05574c camappengine/Engine/Src/CaeEngineImpVideoRecording.cpp --- a/camappengine/Engine/Src/CaeEngineImpVideoRecording.cpp Fri Mar 12 15:43:25 2010 +0200 +++ b/camappengine/Engine/Src/CaeEngineImpVideoRecording.cpp Mon Mar 15 12:41:16 2010 +0200 @@ -1155,25 +1155,26 @@ User::Leave( KErrNotSupported ); } - // Get the controller UID. - iVideoControllerUid = controllers[0]->Uid(); + TBool found( EFalse ); + for ( TInt contInd = 0; contInd < controllers.Count() && !found; contInd++ ) // there can be more than one controller, search from all of them + { + // Get the controller UID. + iVideoControllerUid = controllers[contInd]->Uid(); + LOGTEXT3( _L("Cae: CCaeEngineImp::FindVideoUidsL() contInd=%d, Uid=%x"), contInd, iVideoControllerUid.iUid ); - // Inquires the controller about supported formats. - // We use the first controller found having index 0. - RMMFFormatImplInfoArray formats; - formats = controllers[0]->RecordFormats(); + // Inquires the controller about supported formats. + RMMFFormatImplInfoArray formats = controllers[contInd]->RecordFormats(); - // Get the first format that supports our mime type. - - TBool found( EFalse ); - - for ( TInt i = 0; i < formats.Count(); i++ ) - { - if ( formats[i]->SupportsMimeType( aMimeType ) ) + // Get the first format that supports our mime type. + for ( TInt i = 0; i < formats.Count(); i++ ) { - iVideoFormatUid = formats[i]->Uid(); // set the UID - found = ETrue; - break; + if ( formats[i]->SupportsMimeType( aMimeType ) ) + { + iVideoFormatUid = formats[i]->Uid(); // set the UID + found = ETrue; + LOGTEXT3( _L("Cae: CCaeEngineImp::FindVideoUidsL() Found iVideoFormatUid=%x, index=%d"), iVideoFormatUid.iUid, i ); + break; + } } } if ( !found ) diff -r 6bc4220d7f67 -r 88688c05574c camcordermmfplugin/controller/traces/OstTraceDefinitions.h --- a/camcordermmfplugin/controller/traces/OstTraceDefinitions.h Fri Mar 12 15:43:25 2010 +0200 +++ b/camcordermmfplugin/controller/traces/OstTraceDefinitions.h Mon Mar 15 12:41:16 2010 +0200 @@ -20,5 +20,5 @@ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler // REMOVE BEFORE CHECK-IN TO VERSION CONTROL //#define OST_TRACE_COMPILER_IN_USE -#include +#include #endif diff -r 6bc4220d7f67 -r 88688c05574c camcordermmfplugin/filecomposer/traces/OstTraceDefinitions.h --- a/camcordermmfplugin/filecomposer/traces/OstTraceDefinitions.h Fri Mar 12 15:43:25 2010 +0200 +++ b/camcordermmfplugin/filecomposer/traces/OstTraceDefinitions.h Mon Mar 15 12:41:16 2010 +0200 @@ -20,5 +20,5 @@ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler // REMOVE BEFORE CHECK-IN TO VERSION CONTROL //#define OST_TRACE_COMPILER_IN_USE -#include +#include #endif diff -r 6bc4220d7f67 -r 88688c05574c camcordermmfplugin/mediarecorder/traces/OstTraceDefinitions.h --- a/camcordermmfplugin/mediarecorder/traces/OstTraceDefinitions.h Fri Mar 12 15:43:25 2010 +0200 +++ b/camcordermmfplugin/mediarecorder/traces/OstTraceDefinitions.h Mon Mar 15 12:41:16 2010 +0200 @@ -20,5 +20,5 @@ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler // REMOVE BEFORE CHECK-IN TO VERSION CONTROL //#define OST_TRACE_COMPILER_IN_USE -#include +#include #endif