mmappcomponents/mmmtpdataprovider/src/mmmtpdputility.cpp
branchRCL_3
changeset 22 b034b1c214c2
parent 17 6f9f6e99a23e
child 23 e42293e811d8
equal deleted inserted replaced
20:4aca42fa4eb1 22:b034b1c214c2
   499         User::Leave( KErrNotSupported );
   499         User::Leave( KErrNotSupported );
   500         }
   500         }
   501 
   501 
   502     if ( mimebuf == NULL )
   502     if ( mimebuf == NULL )
   503         {
   503         {
   504         User::Leave( KErrNotFound );
   504         PRINT( _L( "MM MTP <> MmMtpDpUtility::Mp4MimeTypeL, mimebuf == NULL, default as video" ) );
       
   505 
       
   506         if ( file.Ext().CompareF( KTxtExtension3GP ) == 0
       
   507             || file.Ext().CompareF( KTxtExtension3G2 ) == 0 )
       
   508             {
       
   509             mimebuf = KMimeTypeVideo3gpp().Alloc();
       
   510             }
       
   511         else
       
   512             {
       
   513             mimebuf = KMimeTypeVideoMp4().Alloc();
       
   514             }
   505         }
   515         }
   506     PRINT( _L( "MM MTP <= MmMtpDpUtility::Mp4MimeTypeL" ) );
   516     PRINT( _L( "MM MTP <= MmMtpDpUtility::Mp4MimeTypeL" ) );
   507     return mimebuf;
   517     return mimebuf;
   508     }
   518     }
   509 
   519