[vlc-commits] chromecast: cleaner release of the device on exit

Steve Lhomme git at videolan.org
Tue May 3 13:23:00 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Apr 28 14:20:59 2016 +0200| [e2f45e39466dd238af3c1c28715f235dee4d1847] | committer: Thomas Guillem

chromecast: cleaner release of the device on exit

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

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

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 632fa67..4a1d6d4 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -127,9 +127,12 @@ intf_sys_t::~intf_sys_t()
         // 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;
     }



More information about the vlc-commits mailing list