|
@@ -10,6 +10,7 @@ import core.thread;
|
|
import variables;
|
|
import variables;
|
|
import core.sync.mutex;
|
|
import core.sync.mutex;
|
|
import std.file;
|
|
import std.file;
|
|
|
|
+import std.string;
|
|
import system.abstraction;
|
|
import system.abstraction;
|
|
|
|
|
|
extern (C)
|
|
extern (C)
|
|
@@ -196,7 +197,7 @@ void cleanup_video(Video* video)
|
|
free(video);
|
|
free(video);
|
|
}
|
|
}
|
|
|
|
|
|
-extern (C) void playVideoInternal(char* argv)
|
|
|
|
|
|
+extern (C) void playVideoInternal(immutable char* argv)
|
|
{
|
|
{
|
|
const(char)*[] vlcArgs;
|
|
const(char)*[] vlcArgs;
|
|
debug
|
|
debug
|
|
@@ -343,7 +344,7 @@ extern (C) void playVideoInternal(char* argv)
|
|
|
|
|
|
void playVideo(string filename) {
|
|
void playVideo(string filename) {
|
|
version (Posix)
|
|
version (Posix)
|
|
- playVideoInternal(cast(char*)(getcwd() ~ "/" ~ filename));
|
|
|
|
|
|
+ playVideoInternal(toStringz(getcwd() ~ "/" ~ filename));
|
|
version (Windows)
|
|
version (Windows)
|
|
- playVideoInternal(cast(char*)("/" ~ getcwd() ~ "/" ~ filename));
|
|
|
|
|
|
+ playVideoInternal(toStringz("/" ~ getcwd() ~ "/" ~ filename));
|
|
}
|
|
}
|