vlc | branch: master | Francois Cartegnie <[email protected]> | Sun Mar 4 19:45:03 2018 +0100| [6a240c2ead35e3482a8e63938b88f85943afa9d4] | committer: Francois Cartegnie
stream_filter: ifo: fix ifo for full uri was only working with drag & drop > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a240c2ead35e3482a8e63938b88f85943afa9d4 --- 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 0711837cd9..1cdcad19cd 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 [email protected] https://mailman.videolan.org/listinfo/vlc-commits
