vlc/vlc-3.0 | branch: master | Thomas Guillem <[email protected]> | Fri Jan 18 
17:35:22 2019 +0100| [5ec99d0db39174c6e04ce2957bf9ba89a8e23bf4] | committer: 
Thomas Guillem

sout: chromecast: fix memory corruption

Don't write on the sub id that is not owned by this module.

Signed-off-by: Thomas Guillem <[email protected]>

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

 modules/stream_out/chromecast/cast.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/cast.cpp 
b/modules/stream_out/chromecast/cast.cpp
index 673b7c3bf4..5d2aefc139 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1331,7 +1331,7 @@ static void Flush( sout_stream_t *p_stream, 
sout_stream_id_sys_t *id )
     sout_stream_id_sys_t *next_id = p_sys->GetSubId( p_stream, id, false );
     if ( next_id == NULL )
         return;
-    next_id->flushed = true;
+    id->flushed = true;
 
     if( !p_sys->cc_flushing )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to