disable playback of deleted videos in media viewer

This commit is contained in:
adam-m 2013-03-18 12:24:24 -04:00
parent d6c3b6e9cc
commit a1954e49f9

View File

@ -372,7 +372,11 @@ public class DataContentViewerMedia extends javax.swing.JPanel implements DataCo
String name = file.getName().toLowerCase();
if (containsExt(name, IMAGES) || containsExt(name, AUDIOS) || containsExt(name, VIDEOS)) {
boolean deleted = file.isDirNameFlagSet(TSK_FS_NAME_FLAG_ENUM.UNALLOC);
if (containsExt(name, IMAGES)
|| containsExt(name, AUDIOS)
|| (!deleted && containsExt(name, VIDEOS) ) ) {
return true;
}