[vlc-devel] [PATCH] chromecast: detect additional failed load type

Erick Tyndall erythros at gmail.com
Sat Sep 29 04:25:34 CEST 2018


Correctly handle an additional failed load type. Specifically x265
codec on chromecast version 1 and 2 cause an idle state with an
unhandled error.

***This patch supersedes "cast: force transcoding of x265 videos".
---
 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 4c08f8b57a..a2c68e682a 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -856,6 +856,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
-- 
2.17.1


More information about the vlc-devel mailing list