[vlc-commits] chromecast: iterate through out_streams
Thomas Guillem
git at videolan.org
Fri Jan 26 14:27:05 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 25 17:56:52 2018 +0100| [03869a5e9c182ac9a7e4c269a9fe1d3a5763f216] | committer: Jean-Baptiste Kempf
chromecast: iterate through out_streams
(cherry picked from commit e5a12b97ef5ce06407ee98e58f89af793f2dbbed)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=03869a5e9c182ac9a7e4c269a9fe1d3a5763f216
---
modules/stream_out/chromecast/cast.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 35992309ff..ff0d175f9a 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -313,10 +313,10 @@ bool sout_stream_sys_t::startSoutChain( sout_stream_t *p_stream )
{
if ( unlikely( p_out != NULL ) )
{
- for ( size_t i = 0; i < streams.size(); i++ )
+ for ( size_t i = 0; i < out_streams.size(); i++ )
{
- if ( streams[i]->p_sub_id != NULL )
- sout_StreamIdDel( p_out, streams[i]->p_sub_id );
+ if ( out_streams[i]->p_sub_id != NULL )
+ sout_StreamIdDel( p_out, out_streams[i]->p_sub_id );
}
sout_StreamChainDelete( p_out, NULL );
}
@@ -550,10 +550,10 @@ sout_stream_id_sys_t *sout_stream_sys_t::GetSubId( sout_stream_t *p_stream,
if ( UpdateOutput( p_stream ) == false )
return NULL;
- for (i = 0; i < streams.size(); ++i)
+ for (i = 0; i < out_streams.size(); ++i)
{
- if ( id == (sout_stream_id_sys_t*) streams[i] )
- return streams[i]->p_sub_id;
+ if ( id == (sout_stream_id_sys_t*) out_streams[i] )
+ return out_streams[i]->p_sub_id;
}
msg_Err( p_stream, "unknown stream ID" );
More information about the vlc-commits
mailing list