[vlc-devel] [PATCH 01/12] chromecast: var_GetNonEmptyString() cannot return a "" string
Rémi Denis-Courmont
remi at remlab.net
Mon Apr 25 17:52:30 CEST 2016
Le 2016-04-25 17:46, Steve Lhomme a écrit :
> ---
> modules/stream_out/chromecast/cast.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/modules/stream_out/chromecast/cast.cpp
> b/modules/stream_out/chromecast/cast.cpp
> index bda68dc..d05ca1c 100644
> --- a/modules/stream_out/chromecast/cast.cpp
> +++ b/modules/stream_out/chromecast/cast.cpp
> @@ -166,12 +166,12 @@ static int Open(vlc_object_t *p_this)
> config_ChainParse(p_stream, SOUT_CFG_PREFIX, ppsz_sout_options,
> p_stream->p_cfg);
>
> psz_mux = var_GetNonEmptyString(p_stream, SOUT_CFG_PREFIX
> "mux");
> - if (psz_mux == NULL || !psz_mux[0])
> + if (psz_mux == NULL)
> {
> goto error;
> }
> psz_var_mime = var_GetNonEmptyString(p_stream, SOUT_CFG_PREFIX
> "mime");
> - if (psz_var_mime == NULL || !psz_var_mime[0])
> + if (psz_var_mime == NULL)
> goto error;
>
> ss << "http{dst=:" << var_InheritInteger(p_stream,
> SOUT_CFG_PREFIX "http-port") << "/stream"
L obviously GTM.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list