mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Handle .mp4 specially for gen video
This commit is contained in:
parent
1854a38ca3
commit
63e6c96cad
@ -2145,7 +2145,21 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
item.SubtitleFileFileSizeInBytes = new FileInfo(subFileName).Length;
|
||||
}
|
||||
|
||||
var vInfo = UiUtil.GetVideoInfo(fileName);
|
||||
|
||||
var vInfo = new VideoInfo { Success = false };
|
||||
if (fileName.EndsWith(".mp4", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
vInfo = QuartsPlayer.GetVideoInfo(fileName);
|
||||
if (!vInfo.Success)
|
||||
{
|
||||
vInfo = LibMpvDynamic.GetVideoInfo(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
if (!vInfo.Success)
|
||||
{
|
||||
vInfo = UiUtil.GetVideoInfo(fileName);
|
||||
}
|
||||
|
||||
var listViewItem = new ListViewItem(fileName);
|
||||
listViewItem.Tag = item;
|
||||
|
Loading…
Reference in New Issue
Block a user