multimediacommsengine/mmceshared/src/mcecomcodec.cpp
changeset 22 b6d70b04aa2d
parent 0 1bce908db942
child 42 817c922b90eb
--- a/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Fri Apr 23 23:37:24 2010 +0300
+++ b/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Fri May 14 15:11:40 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;
     }
     
 // -----------------------------------------------------------------------------