[vlc-devel] [PATCH 08/16] chromecast: warn when we failed to send a message

Steve Lhomme robux4 at videolabs.io
Thu Apr 28 14:18:41 CEST 2016


---
 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;
 }
 
-- 
2.7.0



More information about the vlc-devel mailing list