From 5023a7c85dc032a5c57cfd6c713358382d546d8c Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Wed, 20 Apr 2016 21:07:28 +0900 Subject: [PATCH] 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 --- sys/applemedia/vtenc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c index de602729eb..39e58102c9 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,