#include "intf_msg.h"
#include "interface.h"
#include "intf_cmd.h"
-#include "intf_plst.h"
+#include "intf_playlist.h"
#include "intf_channels.h"
#include "keystrokes.h"
if( p_intf->p_input == NULL && !p_intf->b_die )
{
/* Select the next playlist item */
- intf_PlstNext( p_main->p_playlist );
+ intf_PlaylistNext( p_main->p_playlist );
if( p_main->p_playlist->i_index == -1 )
{
/* FIXME: wait for user to add stuff to playlist ? */
+#if 0
p_intf->b_die = 1;
+#endif
}
else
{
intf_AssignKey( p_intf , ' ', INTF_KEY_TOGGLE_INTERFACE, 0);
intf_AssignKey( p_intf , 'i', INTF_KEY_TOGGLE_INFO, 0);
intf_AssignKey( p_intf , 's', INTF_KEY_TOGGLE_SCALING, 0);
+ intf_AssignKey( p_intf , 'd', INTF_KEY_DUMP_STREAM, 0);
}
/*****************************************************************************
case INTF_KEY_DEC_GAMMA: /* gamma - */
if( (p_main->p_vout != NULL) && (p_main->p_vout->f_gamma > -INTF_GAMMA_LIMIT) )
{
- vlc_mutex_lock( &p_main->p_vout->change_lock );
+ /* FIXME: we should lock if called from the interface */
p_main->p_vout->f_gamma -= INTF_GAMMA_STEP;
p_main->p_vout->i_changes |= VOUT_GAMMA_CHANGE;
- vlc_mutex_unlock( &p_main->p_vout->change_lock );
}
break;
case INTF_KEY_INC_GAMMA: /* gamma + */
if( (p_main->p_vout != NULL) && (p_main->p_vout->f_gamma < INTF_GAMMA_LIMIT) )
{
- vlc_mutex_lock( &p_main->p_vout->change_lock );
+ /* FIXME: we should lock if called from the interface */
p_main->p_vout->f_gamma += INTF_GAMMA_STEP;
p_main->p_vout->i_changes |= VOUT_GAMMA_CHANGE;
- vlc_mutex_unlock( &p_main->p_vout->change_lock );
+ }
+ break;
+ case INTF_KEY_DUMP_STREAM:
+ if( p_intf->p_input != NULL )
+ {
+ vlc_mutex_lock( &p_intf->p_input->stream.stream_lock );
+ input_DumpStream( p_intf->p_input );
+ vlc_mutex_unlock( &p_intf->p_input->stream.stream_lock );
}
break;
default: /* unknown key */