Skip to content

Update libmythdvdnav - #1418

Merged
linuxdude42 merged 10 commits into
MythTV:masterfrom
ulmus-scott:dvd
Nov 23, 2026
Merged

linuxdude42 merged 10 commits into
MythTV:masterfrom
ulmus-scott:dvd

Conversation

@ulmus-scott

@ulmus-scott ulmus-scott commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

to libdvdread version 7.1.1 at 0b21c45f648a38947ee2bbc75c9a1bd577d96b71 and to libdvdnav version 7.0.1 at e0c02b973c62081ee8dc109726e511e94c10f70e.

NB: dvdnav_read_name() now only works for local DVDs, so if previously the name and serial number of a remote DVD was returned, it no longer will be.

The following commit was reverted:
Fix null pointer dereference in libmythdvdnav.
de9344c

See https://code.videolan.org/videolan/libdvdread/-/merge_requests/97#note_563739 for why.

libdvdread is minimally modified but the non-exported function InternalUDFReadBlocksRaw() is used in libmythtv/DVD/mythdvdstream.cpp.

libdvdnav still has more extensive modifications.


There is no longer a circular dependency between libmythtv and libmythdvdnav. However, I am uncertain if the remote playback capabilities are the same.

I have tested only local DVD playback. I do not have a set up for testing the remote DVD playback. So if anyone could verify what worked before and after this change for remote playback, that would be great.

Also, can someone test the bookmarking/DVD VM state save and restore?

If someone could test whether ulmus-scott/libdvdread@e4e99e7 (from 1ff446a) is still necessary, that is the last major change to libdvdread and I can attempt to upstream it if it is necessary.


Checklist

@ulmus-scott
ulmus-scott marked this pull request as ready for review July 25, 2026 00:30
@ulmus-scott
ulmus-scott force-pushed the dvd branch 3 times, most recently from 34abbbc to 2796588 Compare July 30, 2026 15:49
@ulmus-scott
ulmus-scott marked this pull request as draft August 6, 2026 17:53
@ulmus-scott

Copy link
Copy Markdown
Contributor Author

There is no rush to merge this and I am still working with upstream on some of the changes.

@ulmus-scott

Copy link
Copy Markdown
Contributor Author

@linuxdude42 This has been rebased onto master. Upstreaming has stalled, so we'll have to deal with it at the next update if the changes are different.

I removed MythDVDStream because I couldn't figure out how to get it to work and it uses a private function of libdvdread. Also, I'm not sure it is supposed to do anything that MythDVDBuffer can't.

@ulmus-scott
ulmus-scott force-pushed the dvd branch 4 times, most recently from bfa3870 to bd97d84 Compare October 17, 2026 00:45
The change did the same thing in a slightly different way since
search_to_nearest_cell was always false.
to libdvdread version 7.1.1 at 50009a0e36bb3c0d55fcbeb4837999ab8f4e657b
and to libdvdnav version 7.0.1 at 2ffc50b5c37a6ddc086829203fc44e95588198dd.

NB: dvdnav_read_name() now only works for local DVDs, so if previously
the name and serial number of a remote DVD was returned, it no longer
will be.

The following commit was reverted:
Fix null pointer dereference in libmythdvdnav.
MythTV@de9344c

See https://code.videolan.org/videolan/libdvdread/-/merge_requests/97#note_563739
for why.

libdvdread is minimally modified but the non-exported function
InternalUDFReadBlocksRaw() is used in libmythtv/DVD/mythdvdstream.cpp.

libdvdnav still has more extensive modifications.
instead of MythTV's addition.
I could not get it to work before the most recent libdvd update
and MythDVDBuffer can open image files and directories.

Additionally, this removes the use of internal functions of libdvdread
and the last modifications to libdvdread.

This was from
MythTV@1ff446a

Using libdvdread's stream callback functionality might be
a viable replacement for allowing decryption over the myth protocol.
since the circular dependency has been removed.
since there is no longer a circular dependency with libmythtv.
The function will return before `result` is set before its next use
in the outer scope.

The function never modifies the pointer value of `state` after it is set
and will return before its next use in the outer scope.
@linuxdude42
linuxdude42 merged commit 551c675 into MythTV:master Nov 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants