equal
deleted
inserted
replaced
1885 if ( iBuf.Length() == 0 ) |
1885 if ( iBuf.Length() == 0 ) |
1886 { |
1886 { |
1887 return; |
1887 return; |
1888 } |
1888 } |
1889 |
1889 |
|
1890 |
|
1891 if ( iState->CurrentFolder() == EEFolderSearch ) |
|
1892 { |
|
1893 if ( IsVideoFile( currentIndex ) ) |
|
1894 { |
|
1895 return; // search folder may contain videos - no automatic preview |
|
1896 } |
|
1897 } |
|
1898 |
|
1899 if ( !iProtectionHandler->IsFileValid( iBuf, CMFProtectionHandler::EPlay ) ) |
|
1900 { |
|
1901 return; |
|
1902 } |
|
1903 |
1890 if ( aMediaType == CMediaFileList::EMediaFileTypeVideo ) |
1904 if ( aMediaType == CMediaFileList::EMediaFileTypeVideo ) |
1891 { |
1905 { |
1892 PreviewVideoL( iBuf ); |
1906 PreviewVideoL( iBuf ); |
1893 return; |
1907 return; |
1894 } |
1908 } |
1895 |
1909 |
1896 if ( iState->CurrentFolder() == EEFolderSearch ) |
|
1897 { |
|
1898 if ( IsVideoFile( currentIndex ) ) |
|
1899 { |
|
1900 return; // search folder may contain videos - no automatic preview |
|
1901 } |
|
1902 } |
|
1903 |
|
1904 if ( !iProtectionHandler->IsFileValid( iBuf, CMFProtectionHandler::EPlay ) ) |
|
1905 { |
|
1906 return; |
|
1907 } |
|
1908 |
|
1909 iAudioPreviewHandler->SetAttrL( TMFDialogUtil::EAttrFileName, iBuf ); |
1910 iAudioPreviewHandler->SetAttrL( TMFDialogUtil::EAttrFileName, iBuf ); |
1910 iAudioPreviewHandler->PlayL(); |
1911 iAudioPreviewHandler->PlayL(); |
1911 |
1912 |
1912 //FLOG( _L("CMediaFileDialog::PreviewL END") ); |
1913 //FLOG( _L("CMediaFileDialog::PreviewL END") ); |
1913 } |
1914 } |