vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Sun Mar 4 19:45:03 2018 +0100| [2a77a701ebc2e6e89b540871e2966c3d7837ca0c] | committer: Francois Cartegnie
stream_filter: ifo: fix ifo for full uri was only working with drag & drop (cherry picked from commit 6a240c2ead35e3482a8e63938b88f85943afa9d4) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2a77a701ebc2e6e89b540871e2966c3d7837ca0c --- modules/demux/playlist/ifo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c index 4121fe19e5..d50e8267f4 100644 --- a/modules/demux/playlist/ifo.c +++ b/modules/demux/playlist/ifo.c @@ -98,11 +98,11 @@ int Import_IFO( vlc_object_t *p_this ) static int ReadDVD( stream_t *p_stream, input_item_node_t *node ) { - char *psz_url; const char *psz_location = StreamLocation(p_stream); - if( asprintf( &psz_url, "dvd://%s", psz_location ) == -1 ) - return VLC_EGENERIC; + char *psz_url = strndup( psz_location, strlen( psz_location ) - 12 ); + if( !psz_url ) + return VLC_ENOMEM; input_item_t *p_input = input_item_New( psz_url, psz_url ); if( p_input ) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits