/*****************************************************************************
- * playlist.c : Playlist management functions
+ * thread.c : Playlist management functions
*****************************************************************************
- * Copyright (C) 1999-2004 the VideoLAN team
+ * Copyright © 1999-2008 the VideoLAN team
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
#include <vlc_interface.h>
#include <vlc_playlist.h>
#include "playlist_internal.h"
-#include "interface/interface.h"
/*****************************************************************************
* Local prototypes
static void RunPreparse( playlist_preparse_t * );
static void RunFetcher( playlist_fetcher_t * );
-static void DestroyInteraction( playlist_t * );
-
/*****************************************************************************
* Main functions for the global thread
*****************************************************************************/
/**
* Create the main playlist thread
* Additionally to the playlist, this thread controls :
- * - Interaction
* - Statistics
* - VLM
* \param p_parent
if( p_playlist->p_stats )
free( p_playlist->p_stats );
- DestroyInteraction( p_playlist );
-
playlist_Destroy( p_playlist );
return VLC_SUCCESS;
{
i_loops++;
- if( p_playlist->p_interaction )
- intf_InteractionManage( p_playlist );
-
playlist_MainLoop( p_playlist );
if( p_playlist->b_cant_sleep )
{
vlc_thread_ready( p_obj );
playlist_FetcherLoop( p_obj );
}
-
-/*****************************************************************************
- * Interaction functions
- *****************************************************************************/
-static void DestroyInteraction( playlist_t *p_playlist )
-{
- if( p_playlist->p_interaction )
- {
- intf_InteractionDestroy( p_playlist->p_interaction );
- p_playlist->p_interaction = NULL;
- }
-}