Commit 49603672 authored by Gildas Bazin's avatar Gildas Bazin

* src/playlist/playlist.c: added a playlist var_Set( "intf-change" ).
parent 1414f630
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions * playlist.c : Playlist management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.60 2003/10/20 15:28:03 zorglub Exp $ * $Id: playlist.c,v 1.61 2003/10/20 22:28:26 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -756,6 +756,8 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, ...@@ -756,6 +756,8 @@ static void ObjectGarbageCollector( playlist_t *p_playlist,
static void RunThread ( playlist_t *p_playlist ) static void RunThread ( playlist_t *p_playlist )
{ {
vlc_object_t *p_obj; vlc_object_t *p_obj;
vlc_value_t val;
vlc_bool_t b_vout_destroyed = VLC_FALSE; /*we do vout garbage collector */ vlc_bool_t b_vout_destroyed = VLC_FALSE; /*we do vout garbage collector */
mtime_t i_vout_destroyed_date = 0; mtime_t i_vout_destroyed_date = 0;
...@@ -787,7 +789,8 @@ static void RunThread ( playlist_t *p_playlist ) ...@@ -787,7 +789,8 @@ static void RunThread ( playlist_t *p_playlist )
/* Destroy input */ /* Destroy input */
input_DestroyThread( p_input ); input_DestroyThread( p_input );
/* Unlink current input (_after_ input_DestroyThread for vout garbage collector)*/ /* Unlink current input
* (_after_ input_DestroyThread for vout garbage collector) */
vlc_object_detach( p_input ); vlc_object_detach( p_input );
/* Destroy object */ /* Destroy object */
...@@ -821,6 +824,9 @@ static void RunThread ( playlist_t *p_playlist ) ...@@ -821,6 +824,9 @@ static void RunThread ( playlist_t *p_playlist )
input_StopThread( p_playlist->p_input ); input_StopThread( p_playlist->p_input );
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
val.b_bool = VLC_TRUE;
var_Set( p_playlist, "intf-change", val );
continue; continue;
} }
else if( p_playlist->p_input->stream.control.i_status != INIT_S ) else if( p_playlist->p_input->stream.control.i_status != INIT_S )
...@@ -1026,16 +1032,6 @@ static void PlayItem( playlist_t *p_playlist ) ...@@ -1026,16 +1032,6 @@ static void PlayItem( playlist_t *p_playlist )
p_playlist->pp_items[p_playlist->i_index] ); p_playlist->pp_items[p_playlist->i_index] );
} }
/*****************************************************************************
* Poubellize: put an input thread in the trashcan
*****************************************************************************
* XXX: unused
*****************************************************************************/
static void Poubellize ( playlist_t *p_playlist, input_thread_t *p_input )
{
msg_Dbg( p_playlist, "poubellizing input %i\n", p_input->i_object_id );
}
/***************************************************************************** /*****************************************************************************
* playlist_LoadFile: load a playlist file. * playlist_LoadFile: load a playlist file.
****************************************************************************/ ****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment