Changeset c71ebdc51d377eb489b8e53d749d722d6fd4e563

Show
Ignore:
Timestamp:
06/27/08 17:31:27 (2 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1214580687 +0300
git-parent:

[96c04ef2573b6a9cb95acb09f5300e343b43b9fc]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1214580687 +0300
Message:

Remove video output when input stops - fixes #1637

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/engine.c

    r20a560c rc71ebdc  
    22 * engine.c : Run the playlist and handle its control 
    33 ***************************************************************************** 
    4  * Copyright (C) 1999-2007 the VideoLAN team 
    5  * $Id$ 
     4 * Copyright (C) 1999-2008 the VideoLAN team 
    65 * 
    76 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    197196 
    198197    vlc_mutex_lock( &p_playlist->gc_lock ); 
     198    while( ( p_obj = vlc_object_find( p_playlist->p_libvlc, VLC_OBJECT_VOUT, 
     199                                                  FIND_CHILD ) ) ) 
     200    { 
     201        vlc_object_release( p_obj ); 
     202        if( p_obj->p_parent == VLC_OBJECT(p_playlist->p_libvlc) ) 
     203        { 
     204            msg_Dbg( p_playlist, "garbage collector destroying 1 vout" ); 
     205            vlc_object_release( p_obj ); /* Hmm, is this (thread-)safe?? */ 
     206        } 
     207    } 
    199208    p_playlist->b_cant_sleep = false; 
    200209    vlc_mutex_unlock( &p_playlist->gc_lock );