[vlc-commits] chromecast: iterate through out_streams

Thomas Guillem git at videolan.org
Thu Jan 25 18:33:26 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 25 17:56:52 2018 +0100| [e5a12b97ef5ce06407ee98e58f89af793f2dbbed] | committer: Thomas Guillem

chromecast: iterate through out_streams

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5a12b97ef5ce06407ee98e58f89af793f2dbbed
---

 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 01432f4460..6dc11e0377 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