[vlc-commits] chromecast: log when the Chromecast reports a launch error

Steve Lhomme git at videolan.org
Wed Dec 23 20:28:27 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 23 12:58:45 2015 +0100| [1db584485d8dbd21b1644336050a7ef912d87611] | committer: Jean-Baptiste Kempf

chromecast: log when the Chromecast reports a launch error

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 9461bdc..d703ab7 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -329,6 +329,12 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
 
             }
         }
+        else if (type == "LAUNCH_ERROR")
+        {
+            json_value reason = (*p_data)["reason"];
+            msg_Err(p_stream, "Failed to start the MediaPlayer: %s",
+                    (const char *)reason);
+        }
         else
         {
             msg_Err(p_stream, "Receiver command not supported: %s",



More information about the vlc-commits mailing list