[vlc-commits] sout: chromecast: use stream info helpers in intf_sys_t

Filip Roséen git at videolan.org
Tue Jul 24 16:01:26 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 23 19:56:59 2018 +0200| [23bc6c8813e3416ef2bcce32eab7fd94cc8a7d86] | committer: Thomas Guillem

sout: chromecast: use stream info helpers in intf_sys_t

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.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23bc6c8813e3416ef2bcce32eab7fd94cc8a7d86
---

 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 2b0a0c2c34..739cfb0d59 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 );



More information about the vlc-commits mailing list