purposes).
* input.h: structures of the input not exported to other modules
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input.h,v 1.31 2001/02/22 08:44:45 stef Exp $
+ * $Id: input.h,v 1.32 2001/02/22 16:17:12 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
void input_DelProgram( struct input_thread_s *, struct pgrm_descriptor_s * );
struct input_area_s * input_AddArea( struct input_thread_s * );
void input_DelArea ( struct input_thread_s *, struct input_area_s * );
-void input_DumpStream( struct input_thread_s * );
struct es_descriptor_s * input_FindES( struct input_thread_s *, u16 );
struct es_descriptor_s * input_AddES ( struct input_thread_s *,
struct pgrm_descriptor_s *, u16,
* control the pace of reading.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_ext-intf.h,v 1.24 2001/02/20 08:47:24 stef Exp $
+ * $Id: input_ext-intf.h,v 1.25 2001/02/22 16:17:12 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
void input_SetStatus( struct input_thread_s *, int );
void input_SetRate ( struct input_thread_s *, int );
void input_Seek ( struct input_thread_s *, off_t );
+void input_DumpStream( struct input_thread_s * );
#define INTF_KEY_TOGGLE_INTERFACE 0x09
#define INTF_KEY_TOGGLE_INFO 0x0A
#define INTF_KEY_TOGGLE_SCALING 0x0B
-#define INTF_KEY_UNKNOWN 0x0C
+#define INTF_KEY_DUMP_STREAM 0x0C
+#define INTF_KEY_UNKNOWN 0x0D
#endif
intf_AssignKey(p_intf, SDLK_c, INTF_KEY_TOGGLE_GRAYSCALE, 0);
intf_AssignKey(p_intf, SDLK_SPACE, INTF_KEY_TOGGLE_INTERFACE, 0);
intf_AssignKey(p_intf, SDLK_i, INTF_KEY_TOGGLE_INFO, 0);
- intf_AssignKey(p_intf, SDLK_s, INTF_KEY_TOGGLE_SCALING, 0); }
+ intf_AssignKey(p_intf, SDLK_s, INTF_KEY_TOGGLE_SCALING, 0);
+ intf_AssignKey(p_intf, SDLK_d, INTF_KEY_DUMP_STREAM, 0); }
return( 0 );
}
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_programs.c,v 1.34 2001/02/22 08:44:45 stef Exp $
+ * $Id: input_programs.c,v 1.35 2001/02/22 16:17:12 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
}
-#ifdef STATS
/*****************************************************************************
* input_DumpStream: dumps the contents of a stream descriptor
*****************************************************************************/
}
}
}
-#endif
/*****************************************************************************
* InitDecConfig: initializes a decoder_config_t
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);
}
/*****************************************************************************
p_main->p_vout->i_changes |= VOUT_GAMMA_CHANGE;
}
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 */
return( 1 );
}