On Sun, Apr 23, 2006 at 08:46:35PM -0400, Ryan Richter wrote:
> When I start mocp, it crashes saying:
> 
> mocp: interface_elements.c:3267: iface_set_mixer_value: Assertion `value >= 0 
> && value <= 100' failed.

The attached patch should prevent the crash but you will be probably not
able to use one or both mixer channels from moc.

-- 
Damian Pietras
Index: interface.c
===================================================================
--- interface.c (revision 1899)
+++ interface.c (working copy)
@@ -424,7 +424,9 @@
 
 static void update_mixer_value ()
 {
-       iface_set_mixer_value (get_mixer_value());
+       int val = get_mixer_value ();
+       
+       iface_set_mixer_value (val >= 0 ? val : 0);
 }
 
 static void update_mixer_name ()

Attachment: signature.asc
Description: Digital signature

Reply via email to