* control the pace of reading.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_ext-intf.h,v 1.31 2001/04/10 17:47:05 stef Exp $
+ * $Id: input_ext-intf.h,v 1.32 2001/04/12 03:26:53 stef Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
typedef struct stream_descriptor_s
{
u16 i_stream_id; /* stream id */
+ boolean_t b_changed; /* if stream has been changed,
+ we have to inform the interface */
vlc_mutex_t stream_lock; /* to be taken every time you read
* or modify stream, pgrm or es */
* intf_gnome.c: Gnome interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_gnome.c,v 1.27 2001/04/11 12:52:09 sam Exp $
+ * $Id: intf_gnome.c,v 1.28 2001/04/12 03:26:53 stef Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
char psz_title[3];
char psz_chapter[3];
+ if( p_intf->p_input->stream.b_changed )
+ {
+ p_intf->p_sys->b_menus_update = 1;
+ p_intf->p_input->stream.b_changed = 0;
+fprintf( stderr, "########changed interface##########\n" );
+ }
+
#define p_area p_intf->p_input->stream.p_selected_area
/* Update language/chapter menus after user request */
if( ( p_intf->p_sys->b_menus_update ) ||
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_programs.c,v 1.47 2001/04/12 02:40:09 stef Exp $
+ * $Id: input_programs.c,v 1.48 2001/04/12 03:26:53 stef Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
int input_InitStream( input_thread_t * p_input, size_t i_data_len )
{
p_input->stream.i_stream_id = 0;
+ p_input->stream.b_changed = 0;
p_input->stream.pp_es = NULL;
p_input->stream.pp_selected_es = NULL;
p_input->stream.pp_programs = NULL;
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: mpeg_system.c,v 1.48 2001/04/08 07:24:47 stef Exp $
+ * $Id: mpeg_system.c,v 1.49 2001/04/12 03:26:53 stef Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
p_pgrm_data->i_pmt_version = p_psi->i_version_number;
+ /* inform interface that stream has changed */
+ p_input->stream.b_changed = 1;
}
#undef p_psi