[vlc-commits] access: dvdnav: remove useless hack

Francois Cartegnie git at videolan.org
Tue Jan 28 20:39:47 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 27 16:14:23 2020 +0100| [569863e33a17153611a5e7981d9b2a9f091b4eb8] | committer: Francois Cartegnie

access: dvdnav: remove useless hack

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

 modules/access/dvdnav.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 9ba6062a12..5fda2994bb 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -210,23 +210,6 @@ static int CommonOpen( vlc_object_t *p_this,
     p_sys->b_readahead = b_readahead;
     vlc_mouse_Init( &p_sys->oldmouse );
 
-    if( 1 )
-    {
-        // Hack for libdvdnav CVS.
-        // Without it dvdnav_get_number_of_titles() fails.
-        // Remove when fixed in libdvdnav CVS.
-        uint8_t buffer[DVD_VIDEO_LB_LEN];
-        int i_event, i_len;
-
-        if( dvdnav_get_next_block( p_sys->dvdnav, buffer, &i_event, &i_len )
-              == DVDNAV_STATUS_ERR )
-        {
-            msg_Warn( p_demux, "dvdnav_get_next_block failed" );
-        }
-
-        dvdnav_sector_search( p_sys->dvdnav, 0, SEEK_SET );
-    }
-
     /* Configure dvdnav */
     if( dvdnav_set_readahead_flag( p_sys->dvdnav, p_sys->b_readahead ) !=
           DVDNAV_STATUS_OK )



More information about the vlc-commits mailing list