multimediacommscontroller/mmccvideosourcesink/src/mccvideosourceimpl.cpp
branchRCL_3
changeset 17 a5ac35ca6d81
parent 0 1bce908db942
--- a/multimediacommscontroller/mmccvideosourcesink/src/mccvideosourceimpl.cpp	Tue Apr 27 17:02:55 2010 +0300
+++ b/multimediacommscontroller/mmccvideosourcesink/src/mccvideosourceimpl.cpp	Tue May 11 16:34:40 2010 +0300
@@ -166,13 +166,14 @@
             __V_SOURCESINK_CONTROLL( "CMccVideoSourceImpl::SourcePrimeL, prepare fully" )
             
             TUid encoderUid( KNullUid );
-            DoCodecSpecificConfigurationL( encoderUid );
+            TBool forceEncapsulationType( EFalse );
+            DoCodecSpecificConfigurationL( encoderUid, forceEncapsulationType );
             
             __ASSERT_ALWAYS( iVideoCodecFourCC, User::Leave( KErrNotReady ) );
             	
             __V_SOURCESINK_CONTROLL( "CMccVideoSourceImpl::SourcePrimeL, opening source" )		
         	iMediaRecorder->OpenL( iAudioSource, iCameraHandler->Handle(), 
-        		*iVideoCodecFourCC, iAudioFourCC, encoderUid ) ;
+        		*iVideoCodecFourCC, iAudioFourCC, encoderUid, forceEncapsulationType ) ;
             }
         }
     else
@@ -1218,7 +1219,8 @@
 // CMccVideoSourceImpl::DoCodecSpecificConfigurationL
 // ---------------------------------------------------------------------------
 //
-void CMccVideoSourceImpl::DoCodecSpecificConfigurationL( TUid& aEncoderUid )
+void CMccVideoSourceImpl::DoCodecSpecificConfigurationL( 
+    TUid& aEncoderUid, TBool& aForceEncapsulationType )
     {
     __V_SOURCESINK_CONTROLL( "CMccVideoSourceImpl::DoCodecSpecificConfigurationL" )
     
@@ -1264,6 +1266,7 @@
         __V_SOURCESINK_CONTROLL_INT1( "CMccVideoSourceImpl::DoCodecSpecificConfigurationL, EncodingDecodingDeviceUid:", 
     		                              iVideoCodec.iEncodingDecodingDevice.iUid )
         aEncoderUid = iVideoCodec.iEncodingDecodingDevice;
+        aForceEncapsulationType = ETrue;
         }
     else
         {