Mercurial > mplayer.hg
changeset 18091:71f9a4e7fd9d
remove vts_no parameter from mp_get_titleset_length - it is not only useless,
it also breaks STREAM_CTRL_GET_TIME_LENGTH.
Patch by kiriuja {mplayer-patches at en-directo net}
author | reimar |
---|---|
date | Fri, 14 Apr 2006 13:03:05 +0000 |
parents | dc2e96cb4865 |
children | 96fdfbad5b1a |
files | libmpdemux/stream_dvd.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/stream_dvd.c Fri Apr 14 12:55:45 2006 +0000 +++ b/libmpdemux/stream_dvd.c Fri Apr 14 13:03:05 2006 +0000 @@ -432,7 +432,7 @@ return msec; } -static int mp_get_titleset_length(ifo_handle_t *vts_file, tt_srpt_t *tt_srpt, int vts_no, int title_no) +static int mp_get_titleset_length(ifo_handle_t *vts_file, tt_srpt_t *tt_srpt, int title_no) { int vts_ttn; ///< title number within video title set int pgc_no; ///< program chain number @@ -444,12 +444,9 @@ if(vts_file->vtsi_mat && vts_file->vts_pgcit) { - if(tt_srpt->title[title_no].title_set_nr == vts_no) - { vts_ttn = tt_srpt->title[title_no].vts_ttn - 1; pgc_no = vts_file->vts_ptt_srpt->title[vts_ttn].ptt[0].pgcn - 1; msec = dvdtimetomsec(&vts_file->vts_pgcit->pgci_srp[pgc_no].pgc->playback_time); - } } return msec; } @@ -474,7 +471,7 @@ { if (tt_srpt->title[title_no].title_set_nr != vts_no) continue; - msec = mp_get_titleset_length(vts_file, tt_srpt, vts_no, title_no); + msec = mp_get_titleset_length(vts_file, tt_srpt, title_no); mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title_no + 1, msec / 1000, msec % 1000); } ifoClose(vts_file); @@ -488,7 +485,7 @@ case STREAM_CTRL_GET_TIME_LENGTH: { dvd_priv_t *d = stream->priv; - *((unsigned int *)arg) = mp_get_titleset_length(d->vts_file, d->tt_srpt, d->cur_title, d->cur_title-1); + *((unsigned int *)arg) = mp_get_titleset_length(d->vts_file, d->tt_srpt, d->cur_title-1); return 1; } }