History

libavutil/log.c: only include valgrind header when used.

This is cleaner, but it is also a workaround for when the header exists, but cannot be compiled. This will happen when the compiler has no inline asm support. Possibly the configure check should be improved as well.

Reimar Döffinger committed 3 years ago

Commit 9dd49c81 parent 0ea184f1 file · +1 −1Browse files

Unified · Split

libavutil/log.c+1−1
@@ -47,7 +47,7 @@ static AVMutex mutex = AV_MUTEX_INITIALIZER; · 46 unmodified lines
47 47
48#define LINE_SZ 102448#define LINE_SZ 1024
49 49
50#if HAVE_VALGRIND_VALGRIND_H50#if HAVE_VALGRIND_VALGRIND_H && CONFIG_VALGRIND_BACKTRACE
51#include <valgrind/valgrind.h>51#include <valgrind/valgrind.h>
52/* this is the log level at which valgrind will output a full backtrace */52/* this is the log level at which valgrind will output a full backtrace */
53#define BACKTRACE_LOGLEVEL AV_LOG_ERROR53#define BACKTRACE_LOGLEVEL AV_LOG_ERROR

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t