X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fvideo_output%2Fvideo_output.c;h=6d48fd4b7c1925cc6fa0b6767fb35bdc593b3933;hb=583c6553f6761421260d86bbc21b5b3169c04319;hp=dd03d6f80ab77dacd22a80ab0bb3c74d00c9ca0f;hpb=02d21f72faf6bfb54119e2e28ac03d81682ec332;p=vlc diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c index dd03d6f80a..6d48fd4b7c 100644 --- a/src/video_output/video_output.c +++ b/src/video_output/video_output.c @@ -161,9 +161,9 @@ vout_thread_t * vout_CreateThread ( int *pi_status ) p_vout->b_interface = 0; p_vout->b_scale = 1; - intf_DbgMsg( "wished configuration: %dx%d, %d/%d bpp (%d Bpl)", - p_vout->i_width, p_vout->i_height, p_vout->i_screen_depth, - p_vout->i_bytes_per_pixel * 8, p_vout->i_bytes_per_line ); + intf_WarnMsg( 1, "wished configuration: %dx%d, %d/%d bpp (%d Bpl)", + p_vout->i_width, p_vout->i_height, p_vout->i_screen_depth, + p_vout->i_bytes_per_pixel * 8, p_vout->i_bytes_per_line ); /* Initialize idle screen */ p_vout->last_display_date = 0; @@ -199,12 +199,12 @@ vout_thread_t * vout_CreateThread ( int *pi_status ) free( p_vout ); return( NULL ); } - intf_DbgMsg( "actual configuration: %dx%d, %d/%d bpp (%d Bpl), " - "masks: 0x%x/0x%x/0x%x", - p_vout->i_width, p_vout->i_height, p_vout->i_screen_depth, - p_vout->i_bytes_per_pixel * 8, p_vout->i_bytes_per_line, - p_vout->i_red_mask, p_vout->i_green_mask, - p_vout->i_blue_mask ); + intf_WarnMsg( 1, "actual configuration: %dx%d, %d/%d bpp (%d Bpl), " + "masks: 0x%x/0x%x/0x%x", + p_vout->i_width, p_vout->i_height, p_vout->i_screen_depth, + p_vout->i_bytes_per_pixel * 8, p_vout->i_bytes_per_line, + p_vout->i_red_mask, p_vout->i_green_mask, + p_vout->i_blue_mask ); /* Calculate shifts from system-updated masks */ MaskToShift( &p_vout->i_red_lshift, &p_vout->i_red_rshift, @@ -222,11 +222,7 @@ vout_thread_t * vout_CreateThread ( int *pi_status ) /* Load fonts - fonts must be initialized after the system method since * they may be dependant on screen depth and other thread properties */ - p_vout->p_default_font = vout_LoadFont( DATA_PATH "/" VOUT_DEFAULT_FONT ); - if( p_vout->p_default_font == NULL ) - { - p_vout->p_default_font = vout_LoadFont( "share/" VOUT_DEFAULT_FONT ); - } + p_vout->p_default_font = vout_LoadFont( VOUT_DEFAULT_FONT ); if( p_vout->p_default_font == NULL ) { intf_ErrMsg( "vout error: could not load default font" ); @@ -234,11 +230,8 @@ vout_thread_t * vout_CreateThread ( int *pi_status ) free( p_vout ); return( NULL ); } - p_vout->p_large_font = vout_LoadFont( DATA_PATH "/" VOUT_LARGE_FONT ); - if( p_vout->p_large_font == NULL ) - { - p_vout->p_large_font = vout_LoadFont( "share/" VOUT_LARGE_FONT ); - } + + p_vout->p_large_font = vout_LoadFont( VOUT_LARGE_FONT ); if( p_vout->p_large_font == NULL ) { intf_ErrMsg( "vout error: could not load large font" ); @@ -857,23 +850,23 @@ static int BinaryLog(u32 i) if(i & 0xffff0000) { - i_log += 16; + i_log += 16; } if(i & 0xff00ff00) { - i_log += 8; + i_log += 8; } if(i & 0xf0f0f0f0) { - i_log += 4; + i_log += 4; } if(i & 0xcccccccc) { - i_log += 2; + i_log += 2; } if(i & 0xaaaaaaaa) { - i_log += 1; + i_log += 1; } if (i != ((u32)1 << i_log)) @@ -930,14 +923,11 @@ static int InitThread( vout_thread_t *p_vout ) return( 1 ); } - if( p_vout->b_need_render ) + /* Initialize convertion tables and functions */ + if( vout_InitYUV( p_vout ) ) { - /* Initialize convertion tables and functions */ - if( vout_InitYUV( p_vout ) ) - { - intf_ErrMsg("vout error: can't allocate YUV translation tables"); - return( 1 ); - } + intf_ErrMsg("vout error: can't allocate YUV translation tables"); + return( 1 ); } /* Mark thread as running and return */