I had changed the wrong variable for the default title number and was reading teh VTS files too often. This updated patch has the loops reorganised to only open the VTS files once - although it still has to skip over titles that are not within that VTS rather than knowing straight away where to start looking. However, this is the method used elsewhere in stream_dvd.c too, so it may not be possible to do it better.
At the moment this code appears to be working (i.e. selects the longest title). However, I've been testing on Cygwin, and mplayer actually segfaults in the audio decoding phase on my test DVD. Note that at the moment I am just selecting the longest title, I have another version which selects the title at the start of the longest title set - I don't really know which makes most sense. I think the version supplied is the most intuitive (title not titleset). I only mention this because my test DVD has loads and loads of titles (extras disc). The longest title and longest title set start are the same. ** Attachment added: "updated patch" http://launchpadlibrarian.net/17345158/stream_dvd.c.diff -- sometimes doesn't detect main title https://bugs.launchpad.net/bugs/145801 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
