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

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

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

Reply via email to