Mercurial > audlegacy
diff src/audacious/visualization.c @ 4553:47cc110bef0c
Hookify a visualization function
author | mf0102 <0102@gmx.at> |
---|---|
date | Sun, 18 May 2008 16:06:33 +0200 |
parents | 3cd896ac4d49 |
children | a77d02342ee1 |
line wrap: on
line diff
--- a/src/audacious/visualization.c Sun May 18 09:12:30 2008 +0200 +++ b/src/audacious/visualization.c Sun May 18 16:06:33 2008 +0200 @@ -284,12 +284,8 @@ gint i; if (!pcm_data || nch < 1) { - if (cfg.vis_type != VIS_OFF) { - if (cfg.player_shaded && cfg.player_visible) - ui_svis_timeout_func(mainwin_svis, NULL); - else - ui_vis_timeout_func(mainwin_vis, NULL); - } + if (cfg.vis_type != VIS_OFF) + hook_call("visualization timeout", NULL); return; } @@ -471,10 +467,8 @@ intern_vis_data[i] = 0; */ } } - if (cfg.player_shaded && cfg.player_visible) - ui_svis_timeout_func(mainwin_svis, intern_vis_data); - else - ui_vis_timeout_func(mainwin_vis, intern_vis_data); + + hook_call("visualization timeout", intern_vis_data); } void