multimediacommsengine/mmceshared/src/mcecomcodec.cpp
branchRCL_3
changeset 18 91f50911ea81
parent 0 1bce908db942
child 42 817c922b90eb
--- a/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Tue May 11 16:34:40 2010 +0300
+++ b/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Tue May 25 13:07:26 2010 +0300
@@ -228,7 +228,14 @@
     const TDesC8& /*aFmtpValue*/,
     TBool /*aIsStrictMatch*/ )
     {
-    return aRtpmapValue.FindF( iSdpName ) == 0;
+    // find MIME type
+    TInt slashPos = aRtpmapValue.Find( _L8( "/" ) );
+    if ( slashPos != KErrNotFound )
+        {
+        return aRtpmapValue.Left(slashPos).Compare( iSdpName ) == 0;
+        }
+
+    return aRtpmapValue.FindF(iSdpName) == 0;
     }
     
 // -----------------------------------------------------------------------------