[vlc-devel] [vlc-commits] stream_out: match exactly access/mux for warnings

Rafaël Carré funman at videolan.org
Tue Sep 9 17:56:43 CEST 2014


On 09/09/14 13:53, Francois Cartegnie wrote:
> vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep  9 13:50:56 2014 +0200| [c9d33a6123bb499cce31b4cf469ae40e8c9e9b6c] | committer: Francois Cartegnie
> 
> stream_out: match exactly access/mux for warnings
> 
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9d33a6123bb499cce31b4cf469ae40e8c9e9b6c
> ---
> 
>  modules/stream_out/standard.c |   21 +++++++++++++++------
>  1 file changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
> index 1bdcf6a..03d7336 100644
> --- a/modules/stream_out/standard.c
> +++ b/modules/stream_out/standard.c
> @@ -292,24 +292,33 @@ static int fixAccessMux( sout_stream_t *p_stream, char **ppsz_mux,
>      return 0;
>  }
>  
> +static bool exactMatch( const char *psz_target, const char *psz_string,
> +                        size_t i_len )
> +{
> +    if ( strncmp( psz_target, psz_string, i_len ) )
> +        return false;
> +    else
> +        return ( psz_target[i_len] < 'a' || psz_target[i_len] > 'z' );

psz_target[i_len] == '\0'

Else it won't work for "ts1" or "mp4XYZ"

In which case was this needed btw?

> +}



More information about the vlc-devel mailing list