Hello,
overlay.h is missing an 'extern "C"' wrapper. Otherwise bd_refcnt_inc
and bd_refcnt_dec cannot be called from a C++ program (well, not without
putting the extern "C" around the #include).
Attached is a patch to fix this.
Richard.
diff --git a/src/libbluray/decoders/overlay.h b/src/libbluray/decoders/overlay.h
index 6a31218..7daa478 100644
--- a/src/libbluray/decoders/overlay.h
+++ b/src/libbluray/decoders/overlay.h
@@ -20,6 +20,10 @@
#ifndef BD_OVERLAY_H_
#define BD_OVERLAY_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
#define BD_OVERLAY_INTERFACE_VERSION 2
@@ -199,4 +203,8 @@ typedef struct bd_argb_buffer_s {
} BD_ARGB_BUFFER;
+#ifdef __cplusplus
+}
+#endif
+
#endif // BD_OVERLAY_H_
_______________________________________________
libbluray-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libbluray-devel