[vlc-commits] chromecast: better handling when loading a media fails
Steve Lhomme
git at videolan.org
Fri Mar 25 09:06:42 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Mar 21 15:08:16 2016 +0100| [d266b5ea69e74b7b4d89301068e3ef2511073902] | committer: Jean-Baptiste Kempf
chromecast: better handling when loading a media fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d266b5ea69e74b7b4d89301068e3ef2511073902
---
modules/stream_out/chromecast/chromecast_ctrl.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index ab5cce1..89ae468 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -580,9 +580,12 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
else if (type == "LOAD_FAILED")
{
msg_Err( p_module, "Media load failed");
- msgReceiverClose(appTransportId);
vlc_mutex_locker locker(&lock);
- setConnectionStatus(CHROMECAST_CONNECTION_DEAD);
+ /* close the app to restart it */
+ if (getConnectionStatus() == CHROMECAST_APP_STARTED)
+ msgReceiverClose(appTransportId);
+ else
+ msgReceiverGetStatus();
}
else if (type == "INVALID_REQUEST")
{
More information about the vlc-commits
mailing list