[vlc-commits] chromecast: warn when we fail to send a message

Steve Lhomme git at videolan.org
Tue May 3 13:22:59 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Apr 28 14:18:41 2016 +0200| [533e78b1cd8bcb469e2a3e76ddc282e0aab676bc] | committer: Thomas Guillem

chromecast: warn when we fail to send a message

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

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

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index ba8599a..c9ac020 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -793,6 +793,8 @@ int intf_sys_t::sendMessage(const castchannel::CastMessage &msg)
     if (i_ret == PACKET_HEADER_LEN + i_size)
         return VLC_SUCCESS;
 
+    msg_Warn( p_module, "failed to send message %s", msg.payload_utf8().c_str() );
+
     return VLC_EGENERIC;
 }
 



More information about the vlc-commits mailing list