[vlc-commits] decklink: Fix compile breakage on MacOS

Devin Heitmueller git at videolan.org
Fri Jan 18 17:41:58 CET 2019


vlc | branch: master | Devin Heitmueller <dheitmueller at ltnglobal.com> | Fri Jan 18 11:16:56 2019 -0500| [5856f6c69234e6c0b401c05a5f9d49bcb13491ee] | committer: Marvin Scholz

decklink: Fix compile breakage on MacOS

The following commit broke compilation of the decklink modules on
OSX, since CFStringRef is already const.

commit 651c58b9b4b1666116046ce3e496303704ba202a
Author: Marvin Scholz <epirat07 at gmail.com>
Date:   Mon Oct 22 09:27:21 2018 +0200

    Decklink: Use typedef instead of macro

Signed-off-by: Devin Heitmueller <dheitmueller at ltnglobal.com>
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5856f6c69234e6c0b401c05a5f9d49bcb13491ee
---

 modules/access/vlc_decklink.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/vlc_decklink.h b/modules/access/vlc_decklink.h
index 9855050f64..5faa7acc4a 100644
--- a/modules/access/vlc_decklink.h
+++ b/modules/access/vlc_decklink.h
@@ -37,7 +37,7 @@
 #elif defined(__APPLE__)
 #include <vlc_common.h>
 #include <vlc_charset.h>
-typedef const CFStringRef decklink_str_t;
+typedef CFStringRef decklink_str_t;
 #define DECKLINK_STRDUP(s) FromCFString(s, kCFStringEncodingUTF8)
 #define DECKLINK_FREE(s) CFRelease(s)
 #else



More information about the vlc-commits mailing list