From e326621f71f21935b72628b1467b03b4b67295c9 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robUx4@videolabs.io>
Date: Wed, 23 Dec 2015 12:58:47 +0100
Subject: [PATCH] chromecast: make sure we send the load when the data are
 flowing

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
---
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index de620d3e1f06..e12100ea7d02 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -302,8 +302,8 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
                 if (!appTransportId.empty()
                         && getConnectionStatus() == CHROMECAST_AUTHENTICATED)
                 {
-                    setConnectionStatus(CHROMECAST_APP_STARTED);
                     msgConnect(appTransportId);
+                    setConnectionStatus(CHROMECAST_APP_STARTED);
                     msgPlayerLoad();
                     setConnectionStatus(CHROMECAST_MEDIA_LOAD_SENT);
                     vlc_cond_signal(&loadCommandCond);
-- 
GitLab