From: Dennis S. <sy...@yo...> - 2004-06-26 22:12:47
|
Duilio, visual_video_depth_enum_from_value In the xmms plugin within the visual_initialize function you use: switch (lv_depth) { case 8: depth = VISUAL_VIDEO_DEPTH_8BIT; case 16: depth = VISUAL_VIDEO_DEPTH_16BIT; case 24: depth = VISUAL_VIDEO_DEPTH_24BIT; case 32: depth = VISUAL_VIDEO_DEPTH_32BIT; break; default: depth = lv_depth = VISUAL_VIDEO_DEPTH_24BIT; break; } I'd like to point out that libvisual has a function: visual_video_depth_enum_from_value that does this. Dennis |