[vlc-commits] chromecast: add asserts on Close()

Thomas Guillem git at videolan.org
Wed Jan 31 16:25:52 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 31 10:08:57 2018 +0100| [44fece7da5808b453d681700f6282fb4455ac8d9] | committer: Thomas Guillem

chromecast: add asserts on Close()

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

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

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 30b2c21261..3bf6f8bc19 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1125,6 +1125,7 @@ static void Close(vlc_object_t *p_this)
     var_Destroy( p_stream->p_sout, SOUT_CFG_PREFIX "sys" );
     var_Destroy( p_stream->p_sout, SOUT_CFG_PREFIX "sout-mux-caching" );
 
+    assert(p_sys->streams.empty() && p_sys->out_streams.empty());
     delete p_sys;
 }
 



More information about the vlc-commits mailing list