X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fwall.c;h=b29d3525db384f7d289780b4c55ca36fd22bf1f7;hb=dac7641538885c5a73c34118a6f3e14dcedb9fae;hp=2d66686ca586d10e3df2a61328211bd616798664;hpb=6811f460568b5453bf5513c7afb69dccfe2256f4;p=vlc diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c index 2d66686ca5..b29d3525db 100644 --- a/modules/video_filter/wall.c +++ b/modules/video_filter/wall.c @@ -68,11 +68,11 @@ vlc_module_begin() set_category( CAT_VIDEO ) set_subcategory( SUBCAT_VIDEO_VFILTER ) - add_integer( CFG_PREFIX "cols", 3, NULL, COLS_TEXT, COLS_LONGTEXT, false ) - add_integer( CFG_PREFIX "rows", 3, NULL, ROWS_TEXT, ROWS_LONGTEXT, false ) - add_string( CFG_PREFIX "active", NULL, NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT, + add_integer( CFG_PREFIX "cols", 3, COLS_TEXT, COLS_LONGTEXT, false ) + add_integer( CFG_PREFIX "rows", 3, ROWS_TEXT, ROWS_LONGTEXT, false ) + add_string( CFG_PREFIX "active", NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT, true ) - add_string( CFG_PREFIX "element-aspect", "4:3", NULL, ASPECT_TEXT, ASPECT_LONGTEXT, false ) + add_string( CFG_PREFIX "element-aspect", "4:3", ASPECT_TEXT, ASPECT_LONGTEXT, false ) add_shortcut( "wall" ) set_callbacks( Open, Close ) @@ -351,8 +351,8 @@ static int Open( vlc_object_t *p_this ) p_cfg->fmt.i_width = p_output->i_width; p_cfg->fmt.i_visible_height = p_cfg->fmt.i_height = p_output->i_height; - p_cfg->fmt.i_aspect = (int64_t)i_aspect * i_target_height * p_output->i_width / i_target_width / p_output->i_height; - + p_cfg->fmt.i_sar_num = (int64_t)i_aspect * i_target_height; + p_cfg->fmt.i_sar_den = VOUT_ASPECT_FACTOR * i_target_width; p_cfg->window.i_x = p_output->i_left; /* FIXME relative to video-x/y (TODO in wrapper.c) ? */ p_cfg->window.i_y = p_output->i_top; p_cfg->window.i_align = p_output->i_align; @@ -397,7 +397,6 @@ static int Filter( video_splitter_t *p_splitter, picture_t *pp_dst[], picture_t if( !p_output->b_active ) continue; - video_splitter_output_t *p_cfg = &p_splitter->p_output[p_output->i_output]; picture_t *p_dst = pp_dst[p_output->i_output]; /* */ @@ -422,6 +421,7 @@ static int Mouse( video_splitter_t *p_splitter, vlc_mouse_t *p_mouse, int i_index, const vlc_mouse_t *p_old, const vlc_mouse_t *p_new ) { + VLC_UNUSED(p_old); video_splitter_sys_t *p_sys = p_splitter->p_sys; for( int y = 0; y < p_sys->i_row; y++ )