Commit c6376cac authored by Eric Petit's avatar Eric Petit

motiondetect.c: gcc < 3 compile fix

parent 153deb49
...@@ -116,6 +116,10 @@ static int Create( vlc_object_t *p_this ) ...@@ -116,6 +116,10 @@ static int Create( vlc_object_t *p_this )
{ {
vout_thread_t *p_vout = (vout_thread_t *)p_this; vout_thread_t *p_vout = (vout_thread_t *)p_this;
char *psz_descfilename; char *psz_descfilename;
char buffer[256];
int x1, x2, y1, y2, i_level, i_downspeed, i_upspeed, i;
area_t *p_area;
FILE * p_file;
/* Allocate structure */ /* Allocate structure */
p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
...@@ -154,10 +158,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -154,10 +158,7 @@ static int Create( vlc_object_t *p_this )
} }
/* Parse description file and allocate areas */ /* Parse description file and allocate areas */
char buffer[256]; p_file = fopen( psz_descfilename, "r" );
int x1, x2, y1, y2, i_level, i_downspeed, i_upspeed, i;
area_t *p_area;
FILE * p_file = fopen( psz_descfilename, "r" );
if( !p_file ) if( !p_file )
{ {
msg_Err( p_this, "Failed to open descritpion file %s", msg_Err( p_this, "Failed to open descritpion file %s",
......
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