]> git.sesse.net Git - vlc/commitdiff
* it's information, not informations (grep -r)
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 16 Jul 2004 11:29:21 +0000 (11:29 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 16 Jul 2004 11:29:21 +0000 (11:29 +0000)
* 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).

13 files changed:
modules/access/mms/mmstu.h
modules/control/http.c
modules/demux/asf/asf.c
modules/demux/avi/avi.c
modules/demux/mkv.cpp
modules/demux/mp4/mp4.c
modules/misc/sap.c
modules/mux/asf.c
modules/video_output/fb.c
modules/video_output/ggi.c
modules/video_output/x11/xcommon.c
share/http/info.html
src/input/input.c

index 2e744bcd0ca2e9df283c497ffa45dc3eab4bec63..f41ae1bbfb01ae286531631f00f3f820dd3122c2 100644 (file)
@@ -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) */
index b4eb2d952c9efd38c05ab64586b671b0d7e54f56..d7aec7ec54cdfb69d31f6f48be999aa4cb2b0e61 100644 (file)
@@ -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 )
index 9dc9a328bf73026ccda0fae824d2e8eca6e40686..8be2f3c34797fea2822fa41d85a8734ce7fa1c39 100644 (file)
@@ -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,
index 695ff7d625256872f04f45ae929b3f06fca0bfbd..ecdf17d89fb1d8fb0c138cb8d4f94af2dd76db71 100644 (file)
@@ -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":"",
index af4f4a91e6bdaf4cbcc6ebef2bde7b209e23f92f..ab2011ce6d60dfa6b6555c96ebac5c8ea6fcf756 100644 (file)
@@ -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;
index 6124621593431b1297c9dd8dd1affac9de1d399b..cb2955cbaafc2f3b2b97476455887db46a2df874 100644 (file)
@@ -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 );
index 84bf26875962068f6d97fb9f5b4d3cb7669fda7a..47fa72e2d58138dc5d4953f078cc21f5cc5fc8fe 100644 (file)
@@ -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;
index eda83ccc0dae0acc0044ac397efd3b9503b22428..ad1c796ef6852c36deca900fe13ecbc76e3295ff 100644 (file)
@@ -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 */
index 91a1da50a04cd65f2f18b75e8f65ce220a0a29e5..b21fdfc4c5ba0ffc147a25486559d46c1d1261c6 100644 (file)
@@ -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 ) )
index afbe25236756c706e8204b4cccf9a6b701cb9cb2..b17087a5d2562b3ccdb65105dae36aa40599bd3a 100644 (file)
@@ -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 */
index 9d23a01a17ba1e224a3d5da0d9f421a1db6d0f55..6055ec0ee4bdf4f82b87735548dc6388994eddb5 100644 (file)
@@ -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
index e707eaea83cec32afa6d00e25ec6c3caa8ad0368..50315485537772d7bb6cea677fbbd63f467b80e2 100644 (file)
@@ -1,11 +1,11 @@
 <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" />
index 230abbae824ae05662b99efdf0684e78dfea330c..3cd6b71322ba47a334f439758aa841a2f78143af 100644 (file)
@@ -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] );
         }