[vlc-devel] [PATCH] MMS/TCP streaming: error while asking for file

Jean-Baptiste Kempf jb at videolan.org
Fri May 23 21:07:53 CEST 2008


Hello,

  What is your Real Name ?
  FOr the THANKS file.


On Fri, May 23, 2008 at 04:55:56PM +0200, bl4 wrote :
> bl4 at playker.info wrote:
> >jb at videolan.org wrote:
> >
> >>Who is skilled to apply this one ?
> >>  
> >
> >I'm not sure I understand what you mean. Are there any difficulties 
> >with applying this patch? I made it against vlc source in git tree. 
> >Before I posted to this mailing list, I tried to apply the patch and I 
> >didn't have any problems.
> 
> I'm sorry, I didn't read the developers wiki. I made this patch using 
> `diff -u`. Now I've used `git format-patch` and I'm attaching it again.
> 
> -- 
> bl4
> 

> >From f79996c725eb048e22ae23506123639692617212 Mon Sep 17 00:00:00 2001
> From: bl4 <bl4 at playker.info>
> Date: Fri, 23 May 2008 15:50:27 +0200
> Subject: [PATCH] mms/tcp: send requested media file path to the server without leading / character
> 
> ---
>  modules/access/mms/mmstu.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
> 
> diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
> index 6edd89f..7b41745 100644
> --- a/modules/access/mms/mmstu.c
> +++ b/modules/access/mms/mmstu.c
> @@ -460,6 +460,7 @@ static int MMSOpen( access_t  *p_access, vlc_url_t *p_url, int  i_proto )
>      int          i;
>      int          i_streams;
>      int          i_first;
> +    char         *mediapath;
>  
>  
>      /* *** Open a TCP connection with server *** */
> @@ -620,7 +621,14 @@ static int MMSOpen( access_t  *p_access, vlc_url_t *p_url, int  i_proto )
>      /* *** send command 5 : media file name/path requested *** */
>      var_buffer_reinitwrite( &buffer, 0 );
>      var_buffer_add64( &buffer, 0 );
> -    var_buffer_addUTF16( &buffer, p_url->psz_path );
> +
> +    /* media file path shouldn't start with / character */
> +    mediapath = p_url->psz_path;
> +    if ( *mediapath == '/' )
> +    {
> +        mediapath++;
> +    }
> +    var_buffer_addUTF16( &buffer, mediapath );
>  
>      mms_CommandSend( p_access,
>                       0x05,
> -- 
> 1.5.3.7
> 

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel


-- 
Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list