mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
use extension rather than whole name
This commit is contained in:
parent
94c8e7b6fe
commit
dabcf0cb0a
@ -186,10 +186,10 @@ public class DataContentViewerMedia extends javax.swing.JPanel implements DataCo
|
||||
* @return True if a video file that can be displayed
|
||||
*/
|
||||
private boolean isVideoSupported(AbstractFile file) {
|
||||
String name = file.getName().toLowerCase();
|
||||
String extension = file.getNameExtension();
|
||||
|
||||
//TODO: is this what we want, to require both extension and mimetype support?
|
||||
if (AUDIO_EXTENSIONS.contains("." + name) || videoExtensions.contains("." + name)) {
|
||||
if (AUDIO_EXTENSIONS.contains("." + extension) || videoExtensions.contains("." + extension)) {
|
||||
try {
|
||||
String mimeType = new FileTypeDetector().getFileType(file);
|
||||
if (nonNull(mimeType)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user