[vlc-commits] DVDnav: correctly update the title

Jean-Baptiste Kempf git at videolan.org
Tue Aug 7 13:51:12 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug  7 08:46:25 2012 +0200| [894f53f2046463c07efc8400e1558a9d4b49f79e] | committer: Jean-Baptiste Kempf

DVDnav: correctly update the title

Close #6013

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=894f53f2046463c07efc8400e1558a9d4b49f79e
---

 modules/access/dvdnav.c |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 53179d7..e808f0e 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -813,12 +813,17 @@ static int Demux( demux_t *p_demux )
         if( dvdnav_current_title_info( p_sys->dvdnav, &i_title,
                                        &i_part ) == DVDNAV_STATUS_OK )
         {
-            if( i_title >= 0 && i_title < p_sys->i_title &&
-                i_part >= 1 && i_part <= p_sys->title[i_title]->i_seekpoint &&
-                p_demux->info.i_seekpoint != i_part - 1 )
+            if( i_title >= 0 && i_title < p_sys->i_title )
             {
-                p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
-                p_demux->info.i_seekpoint = i_part - 1;
+                p_demux->info.i_update |= INPUT_UPDATE_TITLE;
+                p_demux->info.i_title = i_title;
+
+                if( i_part >= 1 && i_part <= p_sys->title[i_title]->i_seekpoint &&
+                        p_demux->info.i_seekpoint != i_part - 1 )
+                {
+                    p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
+                    p_demux->info.i_seekpoint = i_part - 1;
+                }
             }
         }
         break;



More information about the vlc-commits mailing list