[MPlayer-dev-eng] [PATCH] Fix mp_describe_titleset and related in stream_dvd.c

kiriuja mplayer-patches at en-directo.net
Mon Apr 10 13:05:27 CEST 2006


This patch corrects a few problems introduced by the commit that added
STREAM_CTRL_GET_TIME_LENGTH control in stream_dvd.c:

1. mp_describe_titleset opened by didn't close a vts if it didn't have
a vtsi_mat or vts_pgcit.

2. if(tt_srpt->title[title_no].title_set_nr == vts_no) check moved to
mp_get_titleset_length and so mp_describe_titleset produced heaps of
wrong output.

3. STREAM_CTRL_GET_TIME_LENGTH control wrongly assumed that every title
has its own vts. Need to use title_set_nr from tt_srpt->title instead.

4. mp_describe_titleset didn't return a value on success.

Someone please apply.

--
kiriuja
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_describe_titleset_fix.diff
Type: text/x-diff
Size: 1897 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060410/a9c934a3/attachment.diff>


More information about the MPlayer-dev-eng mailing list