[vlc-commits] commit: stream redirected path is a path, not a URI (i.e. no scheme) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Mar 2 18:15:12 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 1 23:21:49 2010 +0200| [2d9dbfb9f202be3b5b040e84eaec85878340a47a] | committer: Rémi Denis-Courmont
stream redirected path is a path, not a URI (i.e. no scheme)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d9dbfb9f202be3b5b040e84eaec85878340a47a
---
src/input/input.c | 25 +++++--------------------
1 files changed, 5 insertions(+), 20 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 0ab34db..9b65121 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2632,26 +2632,11 @@ static int InputSourceInit( input_thread_t *p_input,
psz_demux = in->p_access->psz_demux;
}
- {
- /* Take access/stream redirections into account */
- char *psz_real_path;
- char *psz_buf = NULL;
- if( in->p_stream->psz_path )
- {
- const char *psz_a, *psz_d;
- psz_buf = strdup( in->p_stream->psz_path );
- input_SplitMRL( &psz_a, &psz_d, &psz_real_path, psz_buf );
- }
- else
- {
- psz_real_path = psz_path;
- }
- in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,
- psz_real_path,
- in->p_stream, p_input->p->p_es_out,
- p_input->b_preparsing );
- free( psz_buf );
- }
+ in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,
+ /* Take access/stream redirections into account: */
+ in->p_stream->psz_path ? in->p_stream->psz_path : psz_path,
+ in->p_stream, p_input->p->p_es_out,
+ p_input->b_preparsing );
if( in->p_demux == NULL )
{
More information about the vlc-commits
mailing list