Commit c7f1e8bb authored by anonymous's avatar anonymous
Browse files

Use BDPLUS_DEBUG_FILE environment variable for log file.

libbluray uses BD_DEBUG_FILE, files would be overwritten.
parent 2360945f
......@@ -53,7 +53,7 @@ void bd_debug(const char *file, int line, uint32_t mask, const char *format, ...
debug_mask = strtol(env, NULL, 0);
// Send DEBUG to file?
if ((env = getenv("BD_DEBUG_FILE"))) {
if ((env = getenv("BDPLUS_DEBUG_FILE"))) {
FILE *fp = fopen(env, "wb");
if (fp) {
logfile = fp;
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