[vlc-devel] [PATCH] hds: free mutexes and cond variables on all streams

Antti Ajanki antti.ajanki at iki.fi
Thu Nov 27 20:37:43 CET 2014


---
 modules/stream_filter/hds/hds.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c
index 7e3c017..5179bf5 100644
--- a/modules/stream_filter/hds/hds.c
+++ b/modules/stream_filter/hds/hds.c
@@ -1453,6 +1453,8 @@ static void hds_free( hds_stream_t *p_stream )
 
     FREENULL( p_stream->abst_url );
 
+    cleanup_threading( p_stream );
+
     FREENULL( p_stream->url );
     FREENULL( p_stream->movie_id );
     for( int i = 0; i < p_stream->server_entry_count; i++ )
@@ -1563,11 +1565,6 @@ static void Close( vlc_object_t *p_this )
 
     vlc_join( p_sys->dl_thread, NULL );
 
-    if (stream)
-    {
-        cleanup_threading( stream );
-    }
-
     if( p_sys->live )
     {
         vlc_join( p_sys->live_thread, NULL );
-- 
1.7.10.4




More information about the vlc-devel mailing list