[vlc-commits] sout: chromecast: use stream info helpers in sout_access_out_sys_t
Filip Roséen
git at videolan.org
Tue Jul 24 16:08:24 CEST 2018
vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 23 19:57:00 2018 +0200| [a6b62430d530440ee1ec56436720fc5e7a32bc44] | committer: Jean-Baptiste Kempf
sout: chromecast: use stream info helpers in sout_access_out_sys_t
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit fe6112b6dedade5193df0d2c0cf152358371f2d8)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a6b62430d530440ee1ec56436720fc5e7a32bc44
---
modules/stream_out/chromecast/cast.cpp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 6c89239f67..53227c258b 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -46,8 +46,7 @@
struct sout_access_out_sys_t
{
- sout_access_out_sys_t(httpd_host_t *httpd_host, intf_sys_t * const intf,
- const char *psz_url);
+ sout_access_out_sys_t(httpd_host_t *httpd_host, intf_sys_t * const intf);
~sout_access_out_sys_t();
void clear();
@@ -81,7 +80,7 @@ struct sout_stream_sys_t
{
sout_stream_sys_t(httpd_host_t *httpd_host, intf_sys_t * const intf, bool has_video, int port)
: httpd_host(httpd_host)
- , access_out_live(httpd_host, intf, "/stream")
+ , access_out_live(httpd_host, intf)
, p_out(NULL)
, p_intf(intf)
, b_supports_video(has_video)
@@ -372,8 +371,7 @@ static int httpd_url_cb(httpd_callback_sys_t *data, httpd_client_t *cl,
}
sout_access_out_sys_t::sout_access_out_sys_t(httpd_host_t *httpd_host,
- intf_sys_t * const intf,
- const char *psz_url)
+ intf_sys_t * const intf)
: m_intf(intf)
, m_client(NULL)
, m_header(NULL)
@@ -383,7 +381,7 @@ sout_access_out_sys_t::sout_access_out_sys_t(httpd_host_t *httpd_host,
m_fifo = block_FifoNew();
if (!m_fifo)
throw std::runtime_error( "block_FifoNew failed" );
- m_url = httpd_UrlNew(httpd_host, psz_url, NULL, NULL);
+ m_url = httpd_UrlNew(httpd_host, intf->getHttpStreamPath().c_str(), NULL, NULL);
if (m_url == NULL)
{
block_FifoRelease(m_fifo);
More information about the vlc-commits
mailing list