multimediacommscontroller/mmccinterface/src/mmcccodecinformationfactory.cpp
branchrcs
changeset 49 64c62431ac08
parent 0 1bce908db942
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
    30 #include "mmcccodecavc.h"
    30 #include "mmcccodecavc.h"
    31 #include "mmcccodecred.h"
    31 #include "mmcccodecred.h"
    32 #include "mmcccodecdtmf.h"
    32 #include "mmcccodecdtmf.h"
    33 #include "mmcccodeccn.h"
    33 #include "mmcccodeccn.h"
    34 #include "mmcccodecamrwb.h"
    34 #include "mmcccodecamrwb.h"
       
    35 #include "mmcccodecmsrp.h"
    35 
    36 
    36 
    37 
    37 // ============================= LOCAL FUNCTIONS ===============================
    38 // ============================= LOCAL FUNCTIONS ===============================
    38 
    39 
    39 
    40 
   135     else if( !aSdpName.CompareF( KCnSdpName ) ) 
   136     else if( !aSdpName.CompareF( KCnSdpName ) ) 
   136         {
   137         {
   137         codec = CMccCodecCn::NewL();
   138         codec = CMccCodecCn::NewL();
   138         CleanupStack::PushL( codec );
   139         CleanupStack::PushL( codec );
   139         }
   140         }
       
   141     else if( !aSdpName.CompareF( KMSRPSdpName ) )
       
   142         {
       
   143         codec = CMccCodecMsrp::NewL();
       
   144         CleanupStack::PushL( codec );
       
   145         }
   140     else
   146     else
   141         {
   147         {
   142         User::Leave( KErrNotSupported );
   148         User::Leave( KErrNotSupported );
   143         }
   149         }
   144     CleanupStack::Pop( codec );
   150     CleanupStack::Pop( codec );
   193         }
   199         }
   194     else if ( aFourCC == KMccFourCCIdCN )
   200     else if ( aFourCC == KMccFourCCIdCN )
   195         {
   201         {
   196         codec = CMccCodecCn::NewL();
   202         codec = CMccCodecCn::NewL();
   197         }
   203         }
       
   204     else if ( aFourCC == KMccFourCCIdMSRP )
       
   205         {
       
   206         codec =  CMccCodecMsrp::NewL();
       
   207         }
       
   208 
   198     else
   209     else
   199         {
   210         {
   200         User::Leave( KErrNotSupported );
   211         User::Leave( KErrNotSupported );
   201         }
   212         }
   202         
   213