multimediacommsengine/mmceshared/src/mcecomcodec.cpp
changeset 19 f58ead8cf73c
parent 0 1bce908db942
child 42 817c922b90eb
--- a/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Mon May 03 12:52:41 2010 +0300
+++ b/multimediacommsengine/mmceshared/src/mcecomcodec.cpp	Thu May 27 13:16: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;
     }
     
 // -----------------------------------------------------------------------------