[vlc-commits] sout: chromecast: fix memory corruption

Thomas Guillem git at videolan.org
Fri Jan 18 17:37:08 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 18 17:35:22 2019 +0100| [4b7aea3a1ef91dafe92b5d27299542d98b6024ac] | committer: Thomas Guillem

sout: chromecast: fix memory corruption

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

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

 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 99b0a51132..f015b82f42 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1174,7 +1174,7 @@ static void Flush( sout_stream_t *p_stream, void *_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 )
     {



More information about the vlc-commits mailing list