[vlc-devel] [PATCH 3/4] chromecast: use vlc_chromecast_http_HostNew

Thomas Guillem thomas at gllm.fr
Mon Jan 11 13:32:18 UTC 2021


---
 modules/stream_out/chromecast/cast.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 08defbd5a1b..adee085bc9f 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1255,11 +1255,7 @@ static int Open(vlc_object_t *p_this)
     i_device_port = var_InheritInteger(p_stream, SOUT_CFG_PREFIX "port");
     i_local_server_port = var_InheritInteger(p_stream, SOUT_CFG_PREFIX "http-port");
 
-    var_Create(p_stream, "http-port", VLC_VAR_INTEGER);
-    var_SetInteger(p_stream, "http-port", i_local_server_port);
-    var_Create(p_stream, "http-host", VLC_VAR_STRING);
-    var_SetString(p_stream, "http-host", "");
-    httpd_host = vlc_http_HostNew(VLC_OBJECT(p_stream));
+    httpd_host = vlc_chromecast_http_HostNew(VLC_OBJECT(p_stream), i_local_server_port);
     if (httpd_host == NULL)
         goto error;
 
-- 
2.29.2



More information about the vlc-devel mailing list