]> git.sesse.net Git - vlc/blobdiff - src/playlist/engine.c
Remove the brain-damaged video output destruction code
[vlc] / src / playlist / engine.c
index 622f29eb7ea0e43a008927e2b89abad12a5d2591..93b3bcd4c70ea4d1062b5828b7f03870bfb53cbd 100644 (file)
@@ -193,16 +193,6 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, bool b_force )
     }
 
     vlc_mutex_lock( &p_playlist->gc_lock );
-    /* Remove video outputs when user presses stop: */
-    vlc_list_t *list = vlc_list_find( p_playlist->p_libvlc, VLC_OBJECT_VOUT,
-                                      FIND_CHILD );
-    if( list != NULL )
-    {
-        msg_Dbg( p_playlist, "removing %u vout(s)", list->i_count );
-        for( int i = 0; i < list->i_count; i++)
-            vlc_object_release( list->p_values[i].p_object );
-        vlc_list_release( list );
-    }
     p_playlist->b_cant_sleep = false;
     vlc_mutex_unlock( &p_playlist->gc_lock );
 }