[libbdplus-devel] Use BDPLUS_DEBUG_FILE environment variable for log file.

anonymous git at videolan.org
Tue Mar 20 09:05:38 CET 2018


libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Tue Mar 20 09:57:36 2018 +0200| [c7f1e8bbb22853ffef1feadb100845ae3ad4d562] | committer: anonymous

Use BDPLUS_DEBUG_FILE environment variable for log file.

libbluray uses BD_DEBUG_FILE, files would be overwritten.

> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=c7f1e8bbb22853ffef1feadb100845ae3ad4d562
---

 src/util/logging.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/logging.c b/src/util/logging.c
index 3c826d9..006fc8b 100644
--- a/src/util/logging.c
+++ b/src/util/logging.c
@@ -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;



More information about the libbdplus-devel mailing list