[vlc-devel] [PATCH 01/12] chromecast: var_GetNonEmptyString() cannot return a "" string

Steve Lhomme robux4 at videolabs.io
Mon Apr 25 17:46:05 CEST 2016


---
 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"
-- 
2.7.0



More information about the vlc-devel mailing list