[vlc-devel] [PATCH] chromecast: fix http out leak when transcoding
Steve Lhomme
robux4 at videolabs.io
Mon Jun 27 13:38:52 CEST 2016
--
replaces https://patches.videolan.org/patch/13800/ misse done line
---
modules/stream_out/chromecast/cast.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 35591a3..290bdec 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -53,7 +53,7 @@ struct sout_stream_sys_t
~sout_stream_sys_t()
{
- sout_StreamChainDelete(p_out, p_out);
+ sout_StreamChainDelete(p_out, NULL);
delete p_intf;
}
@@ -189,7 +189,7 @@ static void Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
{
p_sys->p_intf->requestPlayerStop();
- sout_StreamChainDelete( p_sys->p_out, p_sys->p_out );
+ sout_StreamChainDelete( p_sys->p_out, NULL );
p_sys->p_out = NULL;
p_sys->sout = "";
}
@@ -303,7 +303,7 @@ int sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
{
if ( unlikely( p_out != NULL ) )
{
- sout_StreamChainDelete( p_out, p_out );
+ sout_StreamChainDelete( p_out, NULL );
sout = "";
}
@@ -458,7 +458,7 @@ static int Open(vlc_object_t *p_this)
msg_Dbg(p_stream, "could not create sout chain:%s", ss.str().c_str());
goto error;
}
- sout_StreamChainDelete( p_sout, p_sout );
+ sout_StreamChainDelete( p_sout, NULL );
b_has_video = var_GetBool(p_stream, SOUT_CFG_PREFIX "video");
--
2.8.2
More information about the vlc-devel
mailing list