[vlc-commits] sout: chromecast: fix memory corruption
Thomas Guillem
git at videolan.org
Fri Jan 18 17:54:01 CET 2019
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | 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 <thomas at gllm.fr>
> 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 )
{
More information about the vlc-commits
mailing list