From c6376cacafdc0a64377f634ab2a5febb77842e02 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Sat, 15 Jan 2005 03:02:57 +0000 Subject: [PATCH] motiondetect.c: gcc < 3 compile fix --- modules/video_filter/motiondetect.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/video_filter/motiondetect.c b/modules/video_filter/motiondetect.c index 01869db86a..a0873b46e1 100644 --- a/modules/video_filter/motiondetect.c +++ b/modules/video_filter/motiondetect.c @@ -116,6 +116,10 @@ static int Create( vlc_object_t *p_this ) { vout_thread_t *p_vout = (vout_thread_t *)p_this; 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 */ p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); @@ -154,10 +158,7 @@ static int Create( vlc_object_t *p_this ) } /* Parse description file and allocate areas */ - char buffer[256]; - int x1, x2, y1, y2, i_level, i_downspeed, i_upspeed, i; - area_t *p_area; - FILE * p_file = fopen( psz_descfilename, "r" ); + p_file = fopen( psz_descfilename, "r" ); if( !p_file ) { msg_Err( p_this, "Failed to open descritpion file %s", -- 2.39.2