summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-22 22:45:30 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-22 22:45:30 +0000
commit8a61cd287be192dcf6f4b944b07bd30ae69000f6 (patch)
treea5f76ca3634211bca326b474066a4925658c9ca1 /mplayer.c
parentb097b0767531e15753c44af6f9b90cb0bb5eef66 (diff)
downloadmpv-8a61cd287be192dcf6f4b944b07bd30ae69000f6.tar.bz2
mpv-8a61cd287be192dcf6f4b944b07bd30ae69000f6.tar.xz
dvd chapter detect function from Gregory Kovriga
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7855 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 200ba53f53..176e06ca12 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2565,7 +2565,8 @@ if(rel_seek_secs || abs_seek_pos){
if ( stream->type == STREAMTYPE_DVD )
{
dvd_priv_t * dvdp = stream->priv;
- guiIntfStruct.DVD.current_chapter=dvdp->cur_cell + 1;
+ /*guiIntfStruct.DVD.current_chapter=dvdp->cur_cell + 1;*/
+ guiIntfStruct.DVD.current_chapter=dvd_chapter_from_cell(dvdp,guiIntfStruct.DVD.current_title-1, dvdp->cur_cell)+1;
}
#endif
}