vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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",

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to