[vlc-commits] chromecast: Always recreate the stream output chain
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jul 17 17:30:23 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jul 17 17:04:51 2017 +0200| [42db691c4b29b3a19aa046f54469bf898668b78b] | committer: Hugo Beauzée-Luyssen
chromecast: Always recreate the stream output chain
This was yielding false negative when remuxing (as the chain wouldn't
change, while the streams would)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=42db691c4b29b3a19aa046f54469bf898668b78b
---
modules/stream_out/chromecast/cast.cpp | 29 ++++++++++++-----------------
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index cf47237a4c..f324bc9e8c 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -321,26 +321,21 @@ void sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
<< ",mux=" << default_muxer
<< ",access=http{mime=" << mime << "}}";
- if ( sout != ssout.str() )
- {
- sout = ssout.str();
-
- if ( startSoutChain( p_stream ) )
- {
- /* tell the chromecast to load the content */
- p_intf->setHasInput( mime );
- }
- else
- {
- p_intf->requestPlayerStop();
+ sout = ssout.str();
- sout_StreamChainDelete( p_out, NULL );
- p_out = NULL;
- sout = "";
- }
+ if ( startSoutChain( p_stream ) )
+ {
+ /* tell the chromecast to load the content */
+ p_intf->setHasInput( mime );
}
else
- msg_Dbg( p_stream, "Stream change doesn't require a new sout chain" );
+ {
+ p_intf->requestPlayerStop();
+
+ sout_StreamChainDelete( p_out, NULL );
+ p_out = NULL;
+ sout = "";
+ }
}
sout_stream_id_sys_t *sout_stream_sys_t::GetSubId( sout_stream_t *p_stream,
More information about the vlc-commits
mailing list