Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933370 - media-tv/kodi-21.0-r1 fails to play DVDs and BluRay discs
Summary: media-tv/kodi-21.0-r1 fails to play DVDs and BluRay discs
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-06-01 16:09 UTC by Charo del Genio
Modified: 2024-06-02 07:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charo del Genio 2024-06-01 16:09:01 UTC
If one tries to play a DVD or a BluRay in kodi-21.0-r1, the film does not play, and one receives an error message saying "One or more items failed to play". Reading in the log files, two errors can be found that seem to relate to the problem. In both cases (DVD and BluRay) the first error is

Unable to load /usr/lib64/kodi/system/players/VideoPlayer/libdvdnav-x86_64-linux.so, reason: /usr/lib64/kodi/system/players/VideoPlayer/libdvdnav-x86_64-linux.so: undefined symbol: dll_fstatvfs64

Then, if the disc is a DVD, this is followed by

CVideoPlayer::OpenInputStream - error opening [/mnt/dvd/VIDEO_TS/VIDEO_TS.IFO]

If, instead, the disc is a BluRay, the first error is followed by

Open - error probing input format, /mnt/bluray/BDMV/index.bdmv


Note that the previous version that was stable in Portage, i.e., kodi-19.5-r2, was working without any problem.

Reproducible: Always

Steps to Reproduce:
1. Emerge the new version of Kodi
2. Try to play a DVD/BluRay
3. D'oh!
Actual Results:  
"One or more items failed to play"

Expected Results:  
Film playing

I strongly suspect this is related to https://github.com/xbmc/xbmc/issues/24955, since it is the same error message I get in the log. Also, if I remember correctly, the very same problem happened a few times with even older versions.
Comment 1 Alfred Wingate 2024-06-01 16:20:22 UTC
I dont have the equipment to test this currently.

Could you try applying this as a patch https://github.com/xbmc/xbmc/pull/24968.

wget https://github.com/xbmc/xbmc/pull/24968.patch -O fstatvfs64.patch
mkdir -p /etc/portage/patches/media-tv/kodi-21.0-r1/
cp fstatvfs64.patch /etc/portage/patches/media-tv/kodi-21.0-r1/

If it works then that could be added to the ebuild in a new revision.

From the looks of things this should be addressed in the next kodi 21 minor release, but I dont know when that is.
Comment 2 Charo del Genio 2024-06-01 16:46:02 UTC
Alright, just tested the patch and it works, both with DVDs and BluRays. And I agree, this should go in the ebuild of a new revision. Should I marked it resolved?
Comment 3 Alfred Wingate 2024-06-01 16:47:51 UTC
Dont mark it as resolved, if the version is bumped or the patch is added in a new revision should it be closed. 

Ill make a PR for it.
Comment 4 Alfred Wingate 2024-06-01 17:18:34 UTC
Best to close this once an ebuild that addresses this has been stabilised.
Comment 5 Larry the Git Cow gentoo-dev 2024-06-02 07:10:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4012f0c17431071322b37b09006a6f6aa7334735

commit 4012f0c17431071322b37b09006a6f6aa7334735
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-06-01 16:58:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-02 07:09:28 +0000

    media-tv/kodi: fix issue that breaks playing DVDs and BluRays
    
    Bug: https://bugs.gentoo.org/933370
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-tv/kodi/files/kodi-21-fix-dvd-playing.patch |  50 +++
 media-tv/kodi/kodi-21.0-r2.ebuild                 | 516 ++++++++++++++++++++++
 2 files changed, 566 insertions(+)