282 // |
282 // |
283 void CMmMtpDpMetadataAccessWrapper::SetImageObjPropL( const TDesC& aFullFileName, |
283 void CMmMtpDpMetadataAccessWrapper::SetImageObjPropL( const TDesC& aFullFileName, |
284 const TUint32 aWidth, |
284 const TUint32 aWidth, |
285 const TUint32 aHeight ) |
285 const TUint32 aHeight ) |
286 { |
286 { |
287 if ( MmMtpDpUtility::IsVideoL( aFullFileName, iFramework ) ) |
287 iMmMtpDpMetadataVideoAccess->SetStorageRootL( aFullFileName ); |
288 { |
288 iMmMtpDpMetadataVideoAccess->SetImageObjPropL( aFullFileName, |
289 iMmMtpDpMetadataVideoAccess->SetStorageRootL( aFullFileName ); |
289 aWidth, |
290 iMmMtpDpMetadataVideoAccess->SetImageObjPropL( aFullFileName, aWidth, aHeight ); |
290 aHeight ); |
291 } |
|
292 } |
291 } |
293 |
292 |
294 // ----------------------------------------------------------------------------- |
293 // ----------------------------------------------------------------------------- |
295 // CMmMtpDpMetadataMpxAccess::GetImageObjPropL |
294 // CMmMtpDpMetadataMpxAccess::GetImageObjPropL |
296 // get image specific properties specific to videos |
295 // get image specific properties specific to videos |
549 |
548 |
550 TInt count = iAbstractMediaArray->Count(); |
549 TInt count = iAbstractMediaArray->Count(); |
551 // Check if playlist file is a dummy file or an imported file |
550 // Check if playlist file is a dummy file or an imported file |
552 for ( TInt i = 0; i < count; i++ ) |
551 for ( TInt i = 0; i < count; i++ ) |
553 { |
552 { |
554 if ( MmMtpDpUtility::FormatFromFilename( (*iAbstractMediaArray)[i] ) != |
553 TPtrC dummyFileName( (*iAbstractMediaArray)[i] ); |
|
554 if ( MmMtpDpUtility::FormatFromFilename( dummyFileName ) != |
555 EMTPFormatCodeM3UPlaylist ) |
555 EMTPFormatCodeM3UPlaylist ) |
556 { |
556 { |
557 // delete the virtual playlist |
557 // delete the virtual playlist |
558 // iFramework has release don't use iFramework.FS() |
558 // iFramework has release don't use iFramework.FS() |
559 TInt err = iRfs.Delete( ( *iAbstractMediaArray )[i] ); |
559 TInt err = iRfs.Delete( ( *iAbstractMediaArray )[i] ); |
560 |
560 |
561 PRINT2( _L( "MM MTP <> CMmMtpDpMetadataAccessWrapper::RemoveDummyFile filename = %S, err %d" ), |
561 PRINT2( _L( "MM MTP <> CMmMtpDpMetadataAccessWrapper::RemoveDummyFile filename = %S, err %d" ), |
562 &( (*iAbstractMediaArray)[i] ), |
562 &dummyFileName, |
563 err ); |
563 err ); |
564 } |
564 } |
565 else |
565 else |
566 { |
566 { |
567 // leave the Imported playlist in the file system |
567 // leave the Imported playlist in the file system |
568 PRINT1( _L( "MM MTP <> CMmMtpDpMetadataAccessWrapper::RemoveDummyFile, Don't delete m3u file [%S]" ), &( (*iAbstractMediaArray)[i] ) ); |
568 PRINT1( _L( "MM MTP <> CMmMtpDpMetadataAccessWrapper::RemoveDummyFile, Don't delete m3u file [%S]" ), &dummyFileName ); |
569 } |
569 } |
570 } |
570 } |
571 PRINT( _L( "MM MTP <= CMmMtpDpMetadataAccessWrapper::RemoveDummyFiles" ) ); |
571 PRINT( _L( "MM MTP <= CMmMtpDpMetadataAccessWrapper::RemoveDummyFiles" ) ); |
572 } |
572 } |
573 |
573 |