[vlc-devel] [PATCH 11/12] chromecast: cleaner release of the device on exit

Steve Lhomme robux4 at videolabs.io
Mon Apr 25 17:46:15 CEST 2016


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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 1a16236..66fbb86 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -121,15 +121,19 @@ intf_sys_t::~intf_sys_t()
 {
     setHasInput( false );
 
+    /* disconnect the current Chromecast */
     switch (getConnectionStatus())
     {
     case CHROMECAST_APP_STARTED:
         // Generate the close messages.
         msgReceiverClose(appTransportId);
         // ft
+    case CHROMECAST_TLS_CONNECTED:
     case CHROMECAST_AUTHENTICATED:
         msgReceiverClose(DEFAULT_CHOMECAST_RECEIVER);
         // ft
+    case CHROMECAST_DISCONNECTED:
+    case CHROMECAST_CONNECTION_DEAD:
     default:
         break;
     }
-- 
2.7.0



More information about the vlc-devel mailing list