multimediacommsengine/mmceshared/src/mcecomcodec.cpp
branchRCL_3
changeset 18 91f50911ea81
parent 0 1bce908db942
child 42 817c922b90eb
equal deleted inserted replaced
17:a5ac35ca6d81 18:91f50911ea81
   226 TBool CMceComCodec::Decodes( 
   226 TBool CMceComCodec::Decodes( 
   227     const TDesC8& aRtpmapValue, 
   227     const TDesC8& aRtpmapValue, 
   228     const TDesC8& /*aFmtpValue*/,
   228     const TDesC8& /*aFmtpValue*/,
   229     TBool /*aIsStrictMatch*/ )
   229     TBool /*aIsStrictMatch*/ )
   230     {
   230     {
   231     return aRtpmapValue.FindF( iSdpName ) == 0;
   231     // find MIME type
       
   232     TInt slashPos = aRtpmapValue.Find( _L8( "/" ) );
       
   233     if ( slashPos != KErrNotFound )
       
   234         {
       
   235         return aRtpmapValue.Left(slashPos).Compare( iSdpName ) == 0;
       
   236         }
       
   237 
       
   238     return aRtpmapValue.FindF(iSdpName) == 0;
   232     }
   239     }
   233     
   240     
   234 // -----------------------------------------------------------------------------
   241 // -----------------------------------------------------------------------------
   235 // CMceComCodec::BaseFactory
   242 // CMceComCodec::BaseFactory
   236 // -----------------------------------------------------------------------------
   243 // -----------------------------------------------------------------------------