summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorcigaes <cigaes@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-10-27 14:57:52 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-07 20:18:21 +0200
commit00f82c63b071af759a5a505f5bc30e01257a7e87 (patch)
tree29228e8a4506eecd9f03be2b350387b17db821a8 /stream/stream_dvd.c
parent759231566a02db7f6de6a1cfcf59820d70ec2ad2 (diff)
downloadmpv-00f82c63b071af759a5a505f5bc30e01257a7e87.tar.bz2
mpv-00f82c63b071af759a5a505f5bc30e01257a7e87.tar.xz
stream_dvd: millisecond accuracy for chapters in -identify output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32539 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 0a93c18767..8ccba47493 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -503,7 +503,7 @@ static int seek_to_chapter(stream_t *stream, ifo_handle_t *vts_file, tt_srpt_t *
static void list_chapters(ifo_handle_t *vts_file, tt_srpt_t *tt_srpt, int title_no)
{
unsigned int i, cell, last_cell;
- unsigned int t=0, t2=0;
+ unsigned int t=0;
ptt_info_t *ptt;
pgc_t *pgc;
@@ -521,8 +521,7 @@ static void list_chapters(ifo_handle_t *vts_file, tt_srpt_t *tt_srpt, int title_
last_cell = pgc->program_map[ptt[i].pgn];
else
last_cell = 0;
- t2 = t/1000;
- mp_msg(MSGT_IDENTIFY, MSGL_INFO, "%02d:%02d:%02d,", t2/3600, (t2/60)%60, t2%60);
+ mp_msg(MSGT_IDENTIFY, MSGL_INFO, "%02d:%02d:%02d.%03d,", t/3600000, (t/60000)%60, (t/1000)%60, t%1000);
do {
if(!(pgc->cell_playback[cell-1].block_type == BLOCK_TYPE_ANGLE_BLOCK &&
pgc->cell_playback[cell-1].block_mode != BLOCK_MODE_FIRST_CELL)