[vlc-commits] stream_filter: ifo: don't overwrite url
Francois Cartegnie
git at videolan.org
Tue Feb 27 15:10:46 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 27 14:10:01 2018 +0100| [09e41a0a8ea3dc2c47cd5c2dde4193f91703501c] | committer: Francois Cartegnie
stream_filter: ifo: don't overwrite url
(cherry picked from commit 9338fff8e4f31fd9259a792b6b7ee93185f1fbe9)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=09e41a0a8ea3dc2c47cd5c2dde4193f91703501c
---
modules/demux/playlist/ifo.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/demux/playlist/ifo.c b/modules/demux/playlist/ifo.c
index c56ff75b31..199b992649 100644
--- a/modules/demux/playlist/ifo.c
+++ b/modules/demux/playlist/ifo.c
@@ -98,13 +98,9 @@ int Import_IFO( vlc_object_t *p_this )
static int ReadDVD( stream_t *p_stream, input_item_node_t *node )
{
- char *psz_url, *psz_dir;
+ char *psz_url;
const char *psz_location = StreamLocation(p_stream);
- psz_dir = strrchr( psz_location, '/' );
- if( psz_dir != NULL )
- psz_dir[1] = '\0';
-
if( asprintf( &psz_url, "dvd://%s", psz_location ) == -1 )
return 0;
More information about the vlc-commits
mailing list