vlc | branch: master | Steve Lhomme <[email protected]> | Thu Apr 28 14:18:38 2016 +0200| [a0df461a73afd0aca04316283310961c315d0827] | committer: Thomas Guillem
chromecast: var_GetNonEmptyString() cannot return a "" string Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0df461a73afd0aca04316283310961c315d0827 --- 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" _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
