Mercurial > audlegacy
changeset 192:0ee0b9b6db7e trunk
[svn] headless now working, use --headless if you wish to experiment.
author | nenolod |
---|---|
date | Mon, 14 Nov 2005 23:43:39 -0800 |
parents | 885780effb5d |
children | 6ecdccd12cae |
files | audacious/main.c audacious/mainwin.c audacious/monostereo.c audacious/playstatus.c audacious/svis.c audacious/vis.c audacious/widget.c |
diffstat | 7 files changed, 31 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/main.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/main.c Mon Nov 14 23:43:39 2005 -0800 @@ -1036,11 +1036,12 @@ mainwin_set_info_text(); playlist_start_get_info_thread(); - gtk_main(); -#if 0 for (;;) + { + ctrlsocket_check(); xmms_usleep(10000); -#endif + } + return EXIT_SUCCESS; } }
--- a/audacious/mainwin.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/mainwin.c Mon Nov 14 23:43:39 2005 -0800 @@ -900,6 +900,9 @@ void mainwin_disable_seekbar(void) { + if (!mainwin) + return; + /* * We dont call draw_main_window() here so this will not * remove them visually. It will only prevent us from sending
--- a/audacious/monostereo.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/monostereo.c Mon Nov 14 23:43:39 2005 -0800 @@ -67,6 +67,9 @@ monostereo_set_num_channels(MonoStereo * ms, gint nch) { + if (!ms) + return; + ms->ms_num_channels = nch; widget_draw(WIDGET(ms)); }
--- a/audacious/playstatus.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/playstatus.c Mon Nov 14 23:43:39 2005 -0800 @@ -30,6 +30,9 @@ PlayStatus *ps = PLAY_STATUS(w); GdkPixmap *obj; + if (!w) + return; + obj = ps->ps_widget.parent; if (ps->ps_status == STATUS_PLAY) @@ -62,6 +65,9 @@ void playstatus_set_status(PlayStatus * ps, PStatus status) { + if (!ps) + return; + ps->ps_status = status; widget_draw(WIDGET(ps)); }
--- a/audacious/svis.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/svis.c Mon Nov 14 23:43:39 2005 -0800 @@ -171,6 +171,9 @@ { gint i; + if (!svis) + return; + for (i = 0; i < 75; i++) { svis->vs_data[i] = (cfg.vis_type == VIS_SCOPE) ? 6 : 0; }
--- a/audacious/vis.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/vis.c Mon Nov 14 23:43:39 2005 -0800 @@ -249,6 +249,9 @@ { gint i; + if (!vis) + return; + for (i = 0; i < 75; i++) { vis->vs_data[i] = (cfg.vis_type == VIS_SCOPE) ? 6 : 0; vis->vs_peak[i] = 0;
--- a/audacious/widget.c Mon Nov 14 23:13:44 2005 -0800 +++ b/audacious/widget.c Mon Nov 14 23:43:39 2005 -0800 @@ -75,6 +75,9 @@ void widget_show(Widget * widget) { + if (!widget) + return; + widget->visible = TRUE; widget_draw(widget); } @@ -82,12 +85,18 @@ void widget_hide(Widget * widget) { + if (!widget) + return; + widget->visible = FALSE; } gboolean widget_is_visible(Widget * widget) { + if (!widget) + return FALSE; + return widget->visible; }