Commit 19540492 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* it's information, not informations (grep -r)

* 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).
parent 202b7bf8
......@@ -69,7 +69,7 @@ struct access_sys_t
size_t i_media;
size_t i_media_used;
/* extracted informations */
/* extracted information */
int i_command;
/* from 0x01 answer (not yet set) */
......
......@@ -2360,7 +2360,7 @@ static void Execute( httpd_file_sys_t *p_args,
{
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 );
}
......@@ -3102,7 +3102,7 @@ static char *Find_end_MRL( char *psz )
/**********************************************************************
* 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 )
......
......@@ -748,7 +748,7 @@ static int DemuxInit( demux_t *p_demux )
}
}
/* Create meta informations */
/* Create meta information */
p_sys->meta = vlc_meta_New();
if( ( p_cd = ASF_FindObject( p_sys->p_root->p_hdr,
......
......@@ -200,18 +200,26 @@ static int Open( vlc_object_t * p_this )
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;
......@@ -238,6 +246,11 @@ static int Open( vlc_object_t * p_this )
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)" );
......@@ -292,7 +305,7 @@ static int Open( vlc_object_t * p_this )
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":"",
......
......@@ -260,7 +260,7 @@ struct demux_sys_t
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 );
......@@ -624,8 +624,8 @@ static int Open( vlc_object_t * p_this )
#undef tk
}
/* add informations */
InformationsCreate( p_demux );
/* add information */
InformationCreate( p_demux );
return VLC_SUCCESS;
......@@ -1419,7 +1419,7 @@ EbmlElement *EbmlParser::Get( void )
*
* * 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 )
......@@ -2109,7 +2109,7 @@ static void ParseInfo( demux_t *p_demux, EbmlElement *info )
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);
......@@ -2342,9 +2342,9 @@ static void ParseChapters( demux_t *p_demux, EbmlElement *chapters )
}
/*****************************************************************************
* 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;
......
......@@ -433,7 +433,7 @@ static int Open( vlc_object_t * p_this )
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 );
......
......@@ -146,7 +146,7 @@ static void free_sd( sess_descr_t * );
/* 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;
......@@ -160,7 +160,7 @@ struct sess_descr_t
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;
......
......@@ -100,7 +100,7 @@ typedef struct
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 */
......
......@@ -2,7 +2,7 @@
* 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>
*
......@@ -85,19 +85,19 @@ vlc_module_end();
*****************************************************************************/
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 */
......@@ -482,7 +482,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
}
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 ) )
{
......@@ -507,7 +507,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
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 ) )
......
......@@ -2,7 +2,7 @@
* 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>
......@@ -74,7 +74,7 @@ vlc_module_end();
*****************************************************************************/
struct vout_sys_t
{
/* GGI system informations */
/* GGI system information */
ggi_visual_t p_display; /* display device */
ggi_mode mode; /* mode descriptor */
......
......@@ -1402,7 +1402,7 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
#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 );
......@@ -1516,7 +1516,7 @@ static void DisableXScreenSaver( vout_thread_t *p_vout )
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,
......@@ -1798,7 +1798,7 @@ static int InitDisplay( vout_thread_t *p_vout )
{
#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" />
......
......@@ -767,7 +767,7 @@ static int Init( input_thread_t * p_input )
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'",
......@@ -780,7 +780,7 @@ static int Init( input_thread_t * p_input )
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] );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment