[vlc-devel] [PATCH 3/6] sout: chromecast: use stream info helpers in intf_sys_t
Filip Roséen
filip at atch.se
Mon Jul 23 19:56:59 CEST 2018
These changes includes usage of the relevant stream info helpers.
--
It also adds an additional slash to the art URI, so that items can be
accessed through "/chromecast/unique/unique/art/$ID", where $ID
denotes the art-id as used in the implementation, instead of
"[...]/art$ID". This is not a change in behavior as the URIs passed to
the device is per session, and the device is given notice of the URI
by us, it does not probe it implicitly.
---
modules/stream_out/chromecast/chromecast_ctrl.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 133e6e87cb..bc59bbec3f 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -310,14 +310,14 @@ void intf_sys_t::prepareHttpArtwork()
{
/* Same art: use the previous cached artwork url */
assert( m_art_idx != 0 );
- ss_art_idx << "/art" << (m_art_idx - 1);
+ ss_art_idx << getHttpArtRoot() << "/" << (m_art_idx - 1);
}
else
{
/* New art: create a new httpd file instance with a new url. The
* artwork has to be different since the CC will cache the content. */
- ss_art_idx << "/art" << m_art_idx;
+ ss_art_idx << getHttpArtRoot() << "/" << m_art_idx;
m_art_idx++;
vlc_mutex_unlock( &m_lock );
--
2.18.0
More information about the vlc-devel
mailing list