* modules/demux/avi/avi.c: Look a bit further into the file for the avi tag.
this allows you to play avi in uncompressed .rar (only first part of course).
size_t i_media;
size_t i_media_used;
- /* extracted informations */
+ /* extracted information */
int i_command;
/* from 0x01 answer (not yet set) */
{
index = mvar_PlaylistSetNew( m.param1, p_intf->p_sys->p_playlist );
}
- else if( !strcmp( m.param2, "informations" ) )
+ else if( !strcmp( m.param2, "information" ) )
{
index = mvar_InfoSetNew( m.param1, p_intf->p_sys->p_input );
}
/**********************************************************************
* parse_MRL: parse the MRL, find the mrl string and the options,
- * create an item with all informations in it, and return the item.
+ * create an item with all information in it, and return the item.
* return NULL if there is an error.
**********************************************************************/
playlist_item_t * parse_MRL( intf_thread_t *p_intf, char *psz )
}
}
- /* Create meta informations */
+ /* Create meta information */
p_sys->meta = vlc_meta_New();
if( ( p_cd = ASF_FindObject( p_sys->p_root->p_hdr,
avi_chunk_avih_t *p_avih;
unsigned int i_track;
- unsigned int i;
+ unsigned int i, i_peeker;
uint8_t *p_peek;
/* Is it an avi file ? */
- if( stream_Peek( p_demux->s, &p_peek, 12 ) < 12 )
+ if( stream_Peek( p_demux->s, &p_peek, 200 ) < 200 )
{
msg_Err( p_demux, "cannot peek()" );
return VLC_EGENERIC;
}
- if( strncmp( &p_peek[0], "RIFF", 4 ) || strncmp( &p_peek[8], "AVI ", 4 ) )
+ for( i_peeker = 0; i_peeker < 188; i_peeker++ )
+ {
+ if( !strncmp( &p_peek[0], "RIFF", 4 ) && !strncmp( &p_peek[8], "AVI ", 4 ) )
+ {
+ break;
+ }
+ p_peek++;
+ }
+ if( i_peeker == 188 )
{
msg_Warn( p_demux, "avi module discarded (invalid header)" );
return VLC_EGENERIC;
p_demux->pf_demux = Demux_UnSeekable;
}
+ if( i_peeker > 0 )
+ {
+ stream_Read( p_demux->s, NULL, i_peeker );
+ }
+
if( AVI_ChunkReadRoot( p_demux->s, &p_sys->ck_root ) )
{
msg_Err( p_demux, "avi module discarded (invalid file)" );
goto error;
}
- /* print informations on streams */
+ /* print information on streams */
msg_Dbg( p_demux, "AVIH: %d stream, flags %s%s%s%s ",
i_track,
p_avih->i_flags&AVIF_HASINDEX?" HAS_INDEX":"",
static void IndexAppendCluster ( demux_t *p_demux, KaxCluster *cluster );
static char *UTF8ToStr ( const UTFstring &u );
static void LoadCues ( demux_t * );
-static void InformationsCreate ( demux_t * );
+static void InformationCreate ( demux_t * );
static void ParseInfo( demux_t *, EbmlElement *info );
static void ParseTracks( demux_t *, EbmlElement *tracks );
#undef tk
}
- /* add informations */
- InformationsCreate( p_demux );
+ /* add information */
+ InformationCreate( p_demux );
return VLC_SUCCESS;
*
* * LoadTags : load ... the tags element
*
- * * InformationsCreate : create all informations, load tags if present
+ * * InformationCreate : create all information, load tags if present
*
*****************************************************************************/
static void LoadCues( demux_t *p_demux )
unsigned int i;
int i_upper_level = 0;
- msg_Dbg( p_demux, "| + Informations" );
+ msg_Dbg( p_demux, "| + Information" );
/* Master elements */
m = static_cast<EbmlMaster *>(info);
}
/*****************************************************************************
- * InformationsCreate:
+ * InformationCreate:
*****************************************************************************/
-static void InformationsCreate( demux_t *p_demux )
+static void InformationCreate( demux_t *p_demux )
{
demux_sys_t *p_sys = p_demux->p_sys;
int i_track;
p_sys->track = calloc( p_sys->i_tracks, sizeof( mp4_track_t ) );
memset( p_sys->track, 0, p_sys->i_tracks * sizeof( mp4_track_t ) );
- /* now process each track and extract all usefull informations */
+ /* now process each track and extract all usefull information */
for( i = 0; i < p_sys->i_tracks; i++ )
{
p_trak = MP4_BoxGet( p_sys->p_root, "/moov/trak[%d]", i );
/* Detect multicast addresses */
static int ismult( char * );
-/* The struct that contains sdp informations */
+/* The struct that contains sdp information */
struct sess_descr_t
{
int i_version;
attr_descr_t **pp_attributes;
};
-/* All this informations are not useful yet. */
+/* All this information is not useful yet. */
struct media_descr_t
{
char *psz_medianame;
int i_id;
int i_cat;
- /* codec informations */
+ /* codec information */
uint16_t i_tag; /* for audio */
vlc_fourcc_t i_fourcc; /* for video */
char *psz_name; /* codec name */
* fb.c : framebuffer plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
- * $Id: fb.c,v 1.9 2004/03/02 13:53:14 kuehne Exp $
+ * $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
*****************************************************************************/
struct vout_sys_t
{
- /* System informations */
+ /* System information */
int i_tty; /* tty device handle */
struct termios old_termios;
- /* Original configuration informations */
+ /* Original configuration information */
struct sigaction sig_usr1; /* USR1 previous handler */
struct sigaction sig_usr2; /* USR2 previous handler */
struct vt_mode vt_mode; /* previous VT mode */
/* Framebuffer information */
int i_fd; /* device handle */
- struct fb_var_screeninfo old_info; /* original mode informations */
- struct fb_var_screeninfo var_info; /* current mode informations */
+ struct fb_var_screeninfo old_info; /* original mode information */
+ struct fb_var_screeninfo var_info; /* current mode information */
vlc_bool_t b_pan; /* does device supports panning ? */
struct fb_cmap fb_cmap; /* original colormap */
uint16_t *p_palette; /* original palette */
}
free( psz_device );
- /* Get framebuffer device informations */
+ /* Get framebuffer device information */
if( ioctl( p_vout->p_sys->i_fd,
FBIOGET_VSCREENINFO, &p_vout->p_sys->var_info ) )
{
return VLC_EGENERIC;
}
- /* Get some informations again, in the definitive configuration */
+ /* Get some information again, in the definitive configuration */
if( ioctl( p_vout->p_sys->i_fd, FBIOGET_FSCREENINFO, &fix_info )
|| ioctl( p_vout->p_sys->i_fd,
FBIOGET_VSCREENINFO, &p_vout->p_sys->var_info ) )
* ggi.c : GGI plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
- * $Id: ggi.c,v 1.6 2004/01/26 16:45:02 zorglub Exp $
+ * $Id$
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
*****************************************************************************/
struct vout_sys_t
{
- /* GGI system informations */
+ /* GGI system information */
ggi_visual_t p_display; /* display device */
ggi_mode mode; /* mode descriptor */
#define SCREEN p_vout->p_sys->p_win->i_screen
- /* Get Informations about Xinerama (num of screens) */
+ /* Get Information about Xinerama (num of screens) */
screens = XineramaQueryScreens( p_vout->p_sys->p_display,
&i_num_screens );
int dummy;
#endif
- /* Save screen saver informations */
+ /* Save screen saver information */
XGetScreenSaver( p_vout->p_sys->p_display, &p_vout->p_sys->i_ss_timeout,
&p_vout->p_sys->i_ss_interval,
&p_vout->p_sys->i_ss_blanking,
{
#ifdef MODULE_NAME_IS_x11
XPixmapFormatValues * p_formats; /* pixmap formats */
- XVisualInfo * p_xvisual; /* visuals informations */
+ XVisualInfo * p_xvisual; /* visuals information */
XVisualInfo xvisual_template; /* visual template */
int i_count; /* array size */
#endif
<html>
<head>
- <title>VLC media player - Informations</title>
+ <title>VLC media player - Information</title>
</head>
<body>
<h2><center><a href="http://www.videolan.org/">VLC media player <vlc id="value" param1="version" /></a></center></h2>
<hr/>
- <vlc id="foreach" param1="cat" param2="informations" />
+ <vlc id="foreach" param1="cat" param2="information" />
<p> <vlc id="value" param1="cat.name" />
<ul>
<vlc id="foreach" param1="info" param2="cat.info" />
if( p_meta && p_meta->i_meta > 0 )
{
- msg_Dbg( p_input, "meta informations:" );
+ msg_Dbg( p_input, "meta information:" );
for( i = 0; i < p_meta->i_meta; i++ )
{
msg_Dbg( p_input, " - '%s' = '%s'",
input_Control( p_input, INPUT_ADD_INFO, _("General"),
_("Author"), p_meta->value[i] );
- input_Control( p_input, INPUT_ADD_INFO, _("Meta-informations"),
+ input_Control( p_input, INPUT_ADD_INFO, _("Meta-information"),
_(p_meta->name[i]), "%s", p_meta->value[i] );
}