FS#15677 - [xbmc] Unable to use optical drives with libcdio 0.81
Attached to Project:
Community Packages
Opened by Ralf Barth (Haggy) - Saturday, 25 July 2009, 09:03 GMT
Last edited by Dan Griffiths (Ghost1227) - Tuesday, 12 January 2010, 06:37 GMT
Opened by Ralf Barth (Haggy) - Saturday, 25 July 2009, 09:03 GMT
Last edited by Dan Griffiths (Ghost1227) - Tuesday, 12 January 2010, 06:37 GMT
|
Details
Description:
Using libcdio 0.81 xbmc is unable to use any optical drives both. Internal logfile shows the drive and disc being detected by HAL but trying to play the disc results in a message "Please insert disc". Dowgrading to libcdio < 0.81 (tested with 0.78) fixes the issue. Additional info: * libcdio 0.81 from [extra] Steps to reproduce: * Use xbmc from [community] or compile xbmc/xbmc-svn (AUR) against libcdio 0.81 * Insert dvd/cd and try to play it * Result: "Please insert disc" though the disc gets detected by HAL (see ~/.xbmc/temp/xbmc.log) * Compile xbmc against an older libcdio * Try to play disc * Result: Plays fine |
This task depends upon
Closed by Dan Griffiths (Ghost1227)
Tuesday, 12 January 2010, 06:37 GMT
Reason for closing: Fixed
Additional comments about closing: Patched with BlackEagle's patch.
Tuesday, 12 January 2010, 06:37 GMT
Reason for closing: Fixed
Additional comments about closing: Patched with BlackEagle's patch.
"Severity High" ???
- unpack working libcdio package
- modify /opt/xbmc/bin/xbmc (add LD_PRELOAD)
#!/bin/sh
python /opt/xbmc/share/xbmc/FEH.py "$@"
export SDL_AUDIODRIVER=alsa
if [ $? -ne 0 ]; then
exit
fi
/opt/xbmc/share/xbmc/xbmc.bin "$@"
while [ $? -eq 65 ]
do
LD_PRELOAD=/path/to/unpacked/libcdio.so /opt/xbmc/share/xbmc/xbmc.bin "$@"
done
if it works, I add legacy libcdio package.
but I think it would be nice if you file report to cdio or xbmc upstreams...
You need to remove -I../lib from the end of line 22 to make it apply properly. I put
sed "s/ -I..\/lib//2" ${srcdir}/use_cdio_system_headers_on_non_win32.patch | patch -p1
into the PKGBUILD and it works fine.
When looking at the PKGBUILD again, i wondered why libcdio is listed as dep and optinal dep at the same time. xbmc does not compile without libcdio with the config options specified, when i remove the lib from the depends array.
check the pkgbuild in
FS#17613talking about a clean build from svn? http://xbmc.org/trac/changeset/26036
Thanks!
on first sight i would say there are more changes in the patch : http://xbmc.org/trac/ticket/8026 than in http://xbmc.org/trac/changeset/26036
the build is from the source available on sourceforge http://sourceforge.net/projects/xbmc/files/
for me it works fine on a dedicated htpc
the Stable 9.11 with patch as in the pkgbuild in
FS#17613