File: update-ffms2-log-levels.patch

package info (click to toggle)
aegisub 3.2.2%2Bdfsg-7.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,988 kB
  • sloc: cpp: 57,067; ansic: 16,457; asm: 3,618; sh: 3,525; makefile: 409; python: 350; perl: 274; cs: 205; xml: 196; objc: 47
file content (33 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Thomas Goyne <plorkyeran@aegisub.org>
Date: Fri, 8 Apr 2016 13:29:32 -0700
Subject: Fix compilation with old versions of ffms2

---
 src/ffmpegsource_common.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/ffmpegsource_common.cpp b/src/ffmpegsource_common.cpp
index 11a5abd..6eaf75d 100644
--- a/src/ffmpegsource_common.cpp
+++ b/src/ffmpegsource_common.cpp
@@ -50,6 +50,20 @@
 #include <wx/intl.h>
 #include <wx/choicdlg.h>
 
+#if FFMS_VERSION < ((2 << 24) | (22 << 16) | (0 << 8) | 0)
+enum {
+	FFMS_LOG_QUIET = -8,
+	FFMS_LOG_PANIC = 0,
+	FFMS_LOG_FATAL = 8,
+	FFMS_LOG_ERROR = 16,
+	FFMS_LOG_WARNING = 24,
+	FFMS_LOG_INFO = 32,
+	FFMS_LOG_VERBOSE = 40,
+	FFMS_LOG_DEBUG = 48,
+	FFMS_LOG_TRACE = 56
+};
+#endif
+
 #ifdef _WIN32
 #include <objbase.h>