[vlc-commits] DVDnav: fix .ifo files opening
Jean-Baptiste Kempf
git at videolan.org
Mon May 9 02:05:54 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 9 01:58:19 2011 +0200| [2abc1a67d5cdaeb2a7ae61df240614b21d433e08] | committer: Jean-Baptiste Kempf
DVDnav: fix .ifo files opening
Should fix the issue mentionned on #3816, comment 14, 2 last results...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2abc1a67d5cdaeb2a7ae61df240614b21d433e08
---
modules/demux/playlist/ifo.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c
index 4dbdb73..9c1d8be 100644
--- a/modules/demux/playlist/ifo.c
+++ b/modules/demux/playlist/ifo.c
@@ -103,7 +103,11 @@ void Close_IFO( vlc_object_t *p_this )
static int Demux( demux_t *p_demux )
{
- char *psz_url;
+ char *psz_url, *psz_dir;
+
+ psz_dir = strrchr( p_demux->psz_location, '/' );
+ if( psz_dir != NULL )
+ psz_dir[1] = '\0';
if( asprintf( &psz_url, "dvd://%s", p_demux->psz_location ) == -1 )
return 0;
More information about the vlc-commits
mailing list