diff options
author | Hyunjun Ko <zzoon@igalia.com> | 2016-04-20 21:07:28 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-04-20 17:16:02 +0300 |
commit | 5023a7c85dc032a5c57cfd6c713358382d546d8c (patch) | |
tree | 9dda03d7bb707121280c3bb70aec87ddd3b75bbe | |
parent | 7bee220af49146be2d830163688b168867633483 (diff) |
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
-rw-r--r-- | sys/applemedia/vtenc.c | 6 |
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, |