Bug#766680: xbmc: link failure: undefined reference to `av_vdpau_alloc_context()'

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Fri Oct 24 20:54:49 UTC 2014


Source: xbmc
Version: 2:13.2+dfsg1-2

Dear Maintainer,

the recent vdpau changes [1], precisely the use of 
av_vdpau_alloc_context, make xbmc fail to link, when compiled against 
ffmpeg.

The problem is that libavcodec is a C library, while xbmc is a C++ 
program and therefore the function symbols differ.
Thus the include of any C library has to be guarded by 'extern "C"'.

Attached patch fixes this.
(This change is already made in the libav_hacks.h header and thus 
building against libav works.)

Best regards,
Andreas

1: 
https://anonscm.debian.org/cgit/pkg-multimedia/xbmc.git/tree/debian/patches/0008-Setup-AVVDPAUContext-with-API-calls-instead-of-using.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xbmc_fix-vdpau-include.patch
Type: text/x-diff
Size: 1525 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20141024/037bd929/attachment.patch>


More information about the pkg-multimedia-maintainers mailing list