add system build to autoconf/automake
[goodguy/history.git] / cinelerra-5.1 / cinelerra / channeldb.C
index b7c99f1ddbb6428a2c5c6ec943123ed00baff608..53bc8b4431c92251418efbb9a9deacfb78005106 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "channel.h"
 #include "channeldb.h"
+#include "file.h"
 #include "filesystem.h"
 #include "filexml.h"
 #include "preferences.inc"
@@ -41,7 +42,7 @@ char* ChannelDB::prefix_to_path(char *path, const char *filename)
 {
        FileSystem fs;
        char directory[BCTEXTLEN];
-       sprintf(directory, BCASTDIR);
+       sprintf(directory, "%s/", File::get_config_path());
        fs.complete_path(directory);
        fs.join_names(path, directory, filename);
        return path;