[vlc-commits] chromecast: detect additional failed load type
Erick Tyndall
git at videolan.org
Sun Dec 16 21:46:31 CET 2018
vlc/vlc-3.0 | branch: master | Erick Tyndall <erythros at gmail.com> | Mon Oct 1 11:59:27 2018 -0400| [e03e6d8efc125f89c71b251c4734b7c34a094ead] | committer: Jean-Baptiste Kempf
chromecast: detect additional failed load type
Correctly handle additional failed load. Specifically x265 codec on chromecast
version 1 and 2 cause an idle state with an unhandled error.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit 1070b0601e741ce410d65af4e40c26ada9f9ae5d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e03e6d8efc125f89c71b251c4734b7c34a094ead
---
modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 864ae2c53d..3c752cf20d 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -863,6 +863,8 @@ void intf_sys_t::processMediaMessage( const castchannel::CastMessage& msg )
// Do not reset the mediaSessionId to ensure we refuse all
// other MEDIA_STATUS from the new session.
}
+ else if ( idleReason == "ERROR" && m_state == Playing )
+ setState( LoadFailed );
else if ( m_state == Buffering )
setState( LoadFailed );
else
More information about the vlc-commits
mailing list