summaryrefslogtreecommitdiff
path: root/sys/applemedia
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2016-04-20 21:07:28 +0900
committerSebastian Dröge <sebastian@centricular.com>2016-04-20 17:16:02 +0300
commit5023a7c85dc032a5c57cfd6c713358382d546d8c (patch)
tree9dda03d7bb707121280c3bb70aec87ddd3b75bbe /sys/applemedia
parent7bee220af49146be2d830163688b168867633483 (diff)
downloadgstreamer-plugins-bad-5023a7c85dc032a5c57cfd6c713358382d546d8c.tar.gz
applemedia: vtenc: Fix a warning by weak-link symbol
Fix this warning address of function 'VTCompressionSessionPrepareToEncodeFrames' will always evaluate to 'true' [-Wpointer-bool-conversion] https://bugzilla.gnome.org/show_bug.cgi?id=765292
Diffstat (limited to 'sys/applemedia')
-rw-r--r--sys/applemedia/vtenc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index de602729e..39e58102c 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -57,6 +57,12 @@ CFSTR ("H264_Baseline_AutoLevel");
const CFStringRef kVTCompressionPropertyKey_Quality = CFSTR ("Quality");
#endif
+#ifdef HAVE_VIDEOTOOLBOX_10_9_6
+extern int
+VTCompressionSessionPrepareToEncodeFrames (VTCompressionSessionRef session)
+ __attribute__ ((weak_import));
+#endif
+
enum
{
PROP_0,