diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
commit | 908778078736bd36f7a60a2d576d415cb8e000fa (patch) | |
tree | c6a4796c48b608c14dc7e9674cdbd38f905e3c15 /media-plugins/vdr-dvd/files | |
parent | 185fa19bbf68a4d4dca534d2b46729207a177f16 (diff) |
gentoo resync : 22.05.2021
Diffstat (limited to 'media-plugins/vdr-dvd/files')
-rw-r--r-- | media-plugins/vdr-dvd/files/vdr-dvd-0.3.7_pre20090106_clang.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-plugins/vdr-dvd/files/vdr-dvd-0.3.7_pre20090106_clang.patch b/media-plugins/vdr-dvd/files/vdr-dvd-0.3.7_pre20090106_clang.patch new file mode 100644 index 000000000000..7816e84b2a6b --- /dev/null +++ b/media-plugins/vdr-dvd/files/vdr-dvd-0.3.7_pre20090106_clang.patch @@ -0,0 +1,26 @@ +clang compilefix + +wrt bug 740276 + +Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org> (13 May 2021) +diff -Naur dvd-cvs-20090106.orig/player-dvd.c dvd-cvs-20090106/player-dvd.c +--- dvd-cvs-20090106.orig/player-dvd.c 2021-05-13 18:51:00.823067369 +0200 ++++ dvd-cvs-20090106/player-dvd.c 2021-05-13 18:53:17.136067369 +0200 +@@ -2707,7 +2707,7 @@ + } + + uint16_t audioStreamLanguageCode = GetAudioTrackLanguageCode(currentNavAudioTrack); +- char audioLanguageStr[3] = {audioStreamLanguageCode, audioStreamLanguageCode >> 8, 0}; ++ char audioLanguageStr[3] = {static_cast<char>(audioStreamLanguageCode), static_cast<char>(audioStreamLanguageCode >> 8), 0}; + if (GetAudioStreamNumbers() > 1) + sprintf(buffer,"%s %d/%d %s", audioStreamLanguageCode != 0xFFFF ? audioLanguageStr : "", GetCurrentNavAudioTrackIdx() + 1, GetAudioStreamNumbers() - 1, audioTypeDescr); + else +@@ -2725,7 +2725,7 @@ + } + + int subtitleStreamLanguageCode = GetSubtitleLanguageCode(currentNavSubpStream); +- char subtitleLanguageStr[3] = {subtitleStreamLanguageCode, subtitleStreamLanguageCode >> 8, 0}; ++ char subtitleLanguageStr[3] = {static_cast<char>(subtitleStreamLanguageCode), static_cast<char>(subtitleStreamLanguageCode >> 8), 0}; + + if(GetSubtitleStreamNumbers() > 2) + sprintf(buffer,"%s %d/%d", subtitleStreamLanguageCode !=0xFFFF ? subtitleLanguageStr : "", GetCurrentNavSubpStreamIdx(), GetSubtitleStreamNumbers() - 1); |