]> git.sesse.net Git - vlc/commitdiff
hds: free mutexes and cond variables on all streams
authorAntti Ajanki <antti.ajanki@iki.fi>
Thu, 27 Nov 2014 18:37:43 +0000 (18:37 +0000)
committerTristan Matthews <tmatth@videolan.org>
Fri, 28 Nov 2014 06:31:10 +0000 (01:31 -0500)
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
modules/stream_filter/hds/hds.c

index 7e3c01771bb6ec0ed0b5fce5e9b9cb19a756f897..5179bf53c1ca18eae25ff57170d74e8f17496e91 100644 (file)
@@ -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 );