Commit 28e27d84 authored by Christophe Massiot's avatar Christophe Massiot

* modules/demux/livedotcom.cpp: Do not use vlc_UrlEncode(), but simply

   replace spaces with '+'. That's what browsers do, and I think it's
   the right thing to do since vlc_UrlEncode was just breaking things.
   refs #90 and debian bug #279735
parent a9a9981e
...@@ -247,12 +247,11 @@ static int Open ( vlc_object_t *p_this ) ...@@ -247,12 +247,11 @@ static int Open ( vlc_object_t *p_this )
goto error; goto error;
} }
if( strcasecmp( p_demux->psz_access, "sdp" ) && if( strcasecmp( p_demux->psz_access, "sdp" ) )
vlc_UrlIsNotEncoded( p_sys->psz_path ) )
{ {
p_sys->psz_path = vlc_UrlEncode( p_sys->psz_path ); char *p = p_sys->psz_path;
if( p_sys->psz_path == NULL ) while( (p = strchr( p, ' ' )) != NULL )
goto error; *p = '+';
} }
if( p_demux->s == NULL && !strcasecmp( p_demux->psz_access, "rtsp" ) ) if( p_demux->s == NULL && !strcasecmp( p_demux->psz_access, "rtsp" ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment