vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Mon Dec 6 05:59:04 2010 +0200| [5aca149e414bb5012e7499dc97f3fa7e09c22c23] | committer: Rémi Denis-Courmont
IFO: fix non-ASCII paths > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5aca149e414bb5012e7499dc97f3fa7e09c22c23 --- modules/demux/playlist/ifo.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c index b62fcfd..0f48e15 100644 --- a/modules/demux/playlist/ifo.c +++ b/modules/demux/playlist/ifo.c @@ -102,14 +102,10 @@ void Close_IFO( vlc_object_t *p_this ) static int Demux( demux_t *p_demux ) { - size_t len = strlen( "dvd://" ) + strlen( p_demux->psz_file ) - - strlen( "VIDEO_TS.IFO" ); char *psz_url; - psz_url = malloc( len+1 ); - if( !psz_url ) + if( asprintf( &psz_url, "dvd://%s", p_demux->psz_location ) == -1 ) return 0; - snprintf( psz_url, len+1, "dvd://%s", p_demux->psz_file ); input_item_t *p_current_input = GetCurrentItem(p_demux); input_item_t *p_input = input_item_New( p_demux, psz_url, psz_url ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
