Skip to content

Commit

Permalink
Switch lsmas for bestsource
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Aug 4, 2024
1 parent 33ddfc6 commit 979d772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/shared/WobblyShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static PluginDetectionInfo requiredPlugins[] = {
{"FieldHint", "com.nodame.fieldhint", "FieldHint", nullptr},
{"TDeintMod", "com.holywu.tdeintmod", "IsCombed", nullptr},
{"d2vsource", "com.sources.d2vsource", "Source", nullptr},
{"L-SMASH-Works", "systems.innocent.lsmas", "LibavSMASHSource", "LWLibavSource"},
{"BestSource", "com.vapoursynth.bestsource", "VideoSource", nullptr},
{"DGDecNV", "com.vapoursynth.dgdecodenv", "DGSource", nullptr}
};

Expand Down
6 changes: 1 addition & 5 deletions src/wibbly/WibblyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1147,16 +1147,12 @@ void WibblyWindow::realOpenVideo(const QString &path) {

QString extension = path.mid(path.lastIndexOf('.') + 1);

QStringList mp4 = { "mp4", "m4v", "mov" };

if (extension == "dgi")
source_filter = "dgdecodenv.DGSource";
else if (extension == "d2v")
source_filter = "d2v.Source";
else if (mp4.contains(extension))
source_filter = "lsmas.LibavSMASHSource";
else
source_filter = "lsmas.LWLibavSource";
source_filter = "bs.VideoSource";

jobs.emplace_back();

Expand Down
6 changes: 1 addition & 5 deletions src/wobbly/WobblyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3885,16 +3885,12 @@ void WobblyWindow::realOpenVideo(const QString &path) {

QString extension = path.mid(path.lastIndexOf('.') + 1);

QStringList mp4 = { "mp4", "m4v", "mov" };

if (extension == "dgi")
source_filter = "dgdecodenv.DGSource";
else if (extension == "d2v")
source_filter = "d2v.Source";
else if (mp4.contains(extension))
source_filter = "lsmas.LibavSMASHSource";
else
source_filter = "lsmas.LWLibavSource";
source_filter = "bs.VideoSource";

QString script = QStringLiteral(
"import vapoursynth as vs\n"
Expand Down

0 comments on commit 979d772

Please sign in to comment.