Skip to content

Commit 6a27b4f

Browse files
authored
Merge pull request #327 from matthuisman/fix_logging_omega
Fix logging (Crash on % user-agents) [Omega]
2 parents 55a1859 + 7d2197a commit 6a27b4f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

inputstream.ffmpegdirect/addon.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="inputstream.ffmpegdirect"
4-
version="21.3.7"
4+
version="21.3.8"
55
name="Inputstream FFmpeg Direct"
66
provider-name="Ross Nicholson">
77
<requires>@ADDON_DEPENDS@</requires>

inputstream.ffmpegdirect/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v21.3.6
2+
- Fix crashing when % in headers caused by missing kodi::Log format arg
3+
14
v21.3.5
25
- Update depednencies to fix building on apple silicon (gnutls 3.8.4) and binutils on linux (2.41 or higher)
36

src/StreamManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void Log(const LogLevel logLevel, const char* format, ...)
4949
va_start(args, format);
5050
vsnprintf(buffer, sizeof(buffer), format, args);
5151
va_end(args);
52-
kodi::Log(addonLevel, buffer);
52+
kodi::Log(addonLevel, "%s", buffer);
5353
}
5454

5555
InputStreamFFmpegDirect::InputStreamFFmpegDirect(const kodi::addon::IInstanceInfo& instance)

0 commit comments

Comments
 (0)