[vlc-commits] chromecast: update the connection status when closing the connection ourselves

Steve Lhomme git at videolan.org
Fri Mar 25 09:06:41 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Mar 21 14:44:00 2016 +0100| [ec4360e882d19d2db552b4e4dd47a1b56f09309d] | committer: Jean-Baptiste Kempf

chromecast: update the connection status when closing the connection ourselves

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

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 5d2754d..90df111 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -640,6 +640,13 @@ void intf_sys_t::msgReceiverClose(std::string destinationId)
 {
     std::string s("{\"type\":\"CLOSE\"}");
     buildMessage( NAMESPACE_CONNECTION, s, destinationId );
+    if (appTransportId != destinationId)
+        setConnectionStatus( CHROMECAST_DISCONNECTED );
+    else
+    {
+        appTransportId = "";
+        setConnectionStatus( CHROMECAST_AUTHENTICATED );
+    }
 }
 
 void intf_sys_t::msgReceiverGetStatus()



More information about the vlc-commits mailing list