diff -r 3570217d8c21 -r 2eb3b066cc7d mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/3gpaudioplaycontroller/Src/3GPAudioPlayControllerRecognizer.cpp --- a/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/3gpaudioplaycontroller/Src/3GPAudioPlayControllerRecognizer.cpp Tue May 11 16:42:02 2010 +0300 +++ b/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/3gpaudioplaycontroller/Src/3GPAudioPlayControllerRecognizer.cpp Tue May 25 13:16:00 2010 +0300 @@ -30,6 +30,7 @@ _LIT(KDot, "."); _LIT(KDot3gp, ".3gp"); _LIT(KDot3ga, ".3ga"); +_LIT(KDot3gpp, ".3gpp"); _LIT8(K3gpAudioMimeType, "audio/3gpp"); _LIT8(K3gpVideoMimeType, "video/3gpp"); @@ -202,7 +203,14 @@ } } - TPtrC ext(aName.Right(KExtLength)); + // TPtrC ext(aName.Right(KExtLength)); + TInt num=aName.LocateReverse('.'); + if(num < 0) + { + num = 0; + } + TPtrC ext(aName.Right(aName.Length()-num)); + DP0(_L("C3GPAudioPlayControllerRecognizer::DoRecognizeL: Extension:")); #ifdef _DEBUG RDebug::RawPrint(ext); @@ -211,7 +219,7 @@ if ( (ext.CompareF(KDot3gp) == 0) || (ext.CompareF(KDotMp4) == 0) || (ext.CompareF(KDotM4a) == 0) || (ext.CompareF(KDot3g2) == 0) || - (ext.CompareF(KDot3ga) == 0) || headerMatch) + (ext.CompareF(KDot3ga) == 0) || (ext.CompareF(KDot3gpp) == 0) || headerMatch) { RFile* fileHandle= NULL; TRAPD(handleErr, fileHandle = FilePassedByHandleL()); @@ -277,7 +285,7 @@ (header.FindF(K3gs6Header) == 0) || (header.FindF(KMmp4Header) == 0) || (ext.CompareF(KDot3gp) == 0) || - (ext.CompareF(KDot3ga) == 0) ) + (ext.CompareF(KDot3ga) == 0)||(ext.CompareF(KDot3gpp) == 0) ) { iDataType = TDataType(K3gpAudioMimeType); iConfidence = ECertain; @@ -308,7 +316,7 @@ (header.FindF(K3gr6Header) == 0) || (header.FindF(K3gs6Header) == 0) || (header.FindF(KMmp4Header) == 0) || - (ext.CompareF(KDot3gp) == 0) ) + (ext.CompareF(KDot3gp) == 0) || (ext.CompareF(KDot3gpp) == 0)) { iDataType = TDataType(K3gpVideoMimeType); iConfidence = ECertain;