[cosmetic] "avidemux_cli.exe": doubled '\' after "...\plugins"

Started by mm0359, August 19, 2016, 12:08:23 PM

Previous topic - Next topic

mm0359

"v2.6.13 + usp10.dll" on WinXP.

"avidemux_cli.exe" reports (55) lines like:
{
[Script] Scanning directory ...\plugins\\scriptEngines
...
[ADM_ad_plugin] Scanning directory ...\plugins\\audioDecoder
...
}

Notice the needlessly doubled '\'.
Should be simple to merge/suppress.

eumagga0x2a

A duplicated folder level separator seems to originate from https://github.com/mean00/avidemux2/blob/master/avidemux_core/ADM_core/src/ADM_fileio.cpp#L364

diff --git a/avidemux_core/ADM_core/src/ADM_fileio.cpp b/avidemux_core/ADM_core/src/ADM_fileio.cpp
index 1b9b134..3a4c73b 100644
--- a/avidemux_core/ADM_core/src/ADM_fileio.cpp
+++ b/avidemux_core/ADM_core/src/ADM_fileio.cpp
@@ -361,7 +361,7 @@ std::string ADM_getPluginDir(const char *subfolder)
             pluginDir = std::string(p);
             delete [] p;p=NULL;
     }
-    return pluginDir+std::string(ADM_SEPARATOR)+std::string(subfolder);
+    return pluginDir+std::string(subfolder);
}           

// EOF


fixes this at least on Linux.

mean


mm0359