Commit 7b0c812e authored by Carsten Schlote's avatar Carsten Schlote

Cleanups

parent 5ef2954b
......@@ -9,7 +9,7 @@ import mediainfo;
int main(string[] args)
{
string fileName;
assert(args.length >= 2, "Pass a filename to the program.");
assert(args.length >= 2, "Pass a filename to scan to the program.");
fileName = args[1];
auto info = MediaInfo();
......
......@@ -85,8 +85,10 @@ string[] audio_extensions = [
void main(string[] args)
{
if (args.length < 2)
if (args.length < 2) {
writeln("You must give a path to scan.");
return;
}
auto info = MediaInfo();
string vstring = info.option("Info_Version", "0.7.38.0;DTest;0.1");
writefln("Found version %s", vstring);
......
......@@ -16,7 +16,7 @@ extern (C):
import core.stdc.config;
/*Char types */
/* D is always unicode! Note: wchar_t is diffeent on Poxix vs. Windows! */
/* D is always unicode! Note: wchar_t is different on Poxix and Windows! */
version(Windows) {
alias MediaInfo_Char = char;
alias MediaInfo_WChar = wchar;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment