[vlc-commits] access: dvdnav: remove useless hack
Francois Cartegnie
git at videolan.org
Fri Feb 28 16:41:19 CET 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 27 16:14:23 2020 +0100| [cff40c5a537622767b72349c2b55be7345f6629c] | committer: Francois Cartegnie
access: dvdnav: remove useless hack
(cherry picked from commit 569863e33a17153611a5e7981d9b2a9f091b4eb8)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cff40c5a537622767b72349c2b55be7345f6629c
---
modules/access/dvdnav.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 13a6ca6025..2120cb01a2 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -211,23 +211,6 @@ static int CommonOpen( vlc_object_t *p_this,
ps_track_init( p_sys->tk );
p_sys->b_readahead = b_readahead;
- 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