static void Close( vlc_object_t *p_this )
{
intf_thread_t *p_intf = (intf_thread_t *)p_this;
+ run_command_t *p_command;
+ run_command_t *p_next;
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
var_Destroy( p_playlist, "run-program-command" );
vlc_object_release( p_playlist );
- run_command_t *p_command = p_intf->p_sys->p_first_command;
- run_command_t *p_next;
-
+ p_command = p_intf->p_sys->p_first_command;
while( p_command )
{
p_next = p_command->p_next;
*****************************************************************************/
static void Run( intf_thread_t *p_intf )
{
- p_intf->p_sys->next_check = mdate() + 1000000;
run_command_t *p_command;
run_command_t *p_previous;
+ p_intf->p_sys->next_check = mdate() + 1000000;
+
while( !p_intf->b_die )
{
vlc_mutex_lock( &p_intf->p_sys->change_lock );
vlc_value_t oldval, vlc_value_t newval, void *p_data )
{
intf_thread_t *p_intf = (intf_thread_t *)p_data;
-
+ run_command_t *p_command;
char *psz_command = NULL;
int i_delay = 0;
strcpy( psz_command, newval.psz_string );
}
- run_command_t *p_command = malloc( sizeof( run_command_t ) );
+ p_command = malloc( sizeof( run_command_t ) );
if ( p_command == NULL )
{
msg_Err( p_intf, "out of memory: can't add run command" );