From: Ronald B. <rb...@us...> - 2003-10-08 13:06:41
|
CVS Root: /cvsroot/gstreamer Module: gst-sandbox Changes by: rbultje Date: Wed Oct 08 2003 06:06:38 PDT Log message: Oops, prevent warning if there's no lock button Modified files: gst-mixer/src : mixer.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-sandbox/gst-mixer/src/mixer.c.diff?r1=1.3&r2=1.4 ====Begin Diffs==== Index: mixer.c =================================================================== RCS file: /cvsroot/gstreamer/gst-sandbox/gst-mixer/src/mixer.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mixer.c 8 Oct 2003 13:04:20 -0000 1.3 +++ mixer.c 8 Oct 2003 13:06:26 -0000 1.4 @@ -52,7 +52,8 @@ for ( ; adjustments != NULL; adjustments = adjustments->next) { GtkAdjustment *adj2 = (GtkAdjustment *) adjustments->data; - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ctrl->lock))) { + if (ctrl->lock != NULL && + gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (ctrl->lock))) { gtk_adjustment_set_value (adj2, gtk_adjustment_get_value (adj)); volumes[i++] = -gtk_adjustment_get_value (adj); } else { |