Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mixer

Dir     : e_modules/mixer


Modified Files:
        e_mod_config.c e_mod_main.c 


Log Message:
Fix some buggers where card_id was 0.

===================================================================
RCS file: /cvs/e/e_modules/mixer/e_mod_config.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_mod_config.c      11 Sep 2006 15:22:46 -0000      1.9
+++ e_mod_config.c      11 Sep 2006 19:14:56 -0000      1.10
@@ -106,7 +106,7 @@
        e_widget_list_object_append(o, of, 1, 1, 0.5);  
      }
 
-   if (mixer->mix_sys->get_card) 
+   if ((mixer->mix_sys->get_card) && (ci->card_id != 0))
      {
        card = mixer->mix_sys->get_card(ci->card_id);
        if ((mixer->mix_sys->get_channels) && (card)) 
===================================================================
RCS file: /cvs/e/e_modules/mixer/e_mod_main.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- e_mod_main.c        11 Sep 2006 19:00:30 -0000      1.25
+++ e_mod_main.c        11 Sep 2006 19:14:56 -0000      1.26
@@ -473,9 +473,12 @@
         int vol;
         double v;
         
-        vol = inst->mixer->mix_sys->get_volume(ci->card_id, ci->channel_id);
-        v = (1.0 - ((double)vol / 100));
-        e_slider_value_set(win->slider, v);
+       if ((ci->card_id != 0) && (ci->channel_id != 0)) 
+         {
+            vol = inst->mixer->mix_sys->get_volume(ci->card_id, 
ci->channel_id);
+            v = (1.0 - ((double)vol / 100));
+            e_slider_value_set(win->slider, v); 
+         }     
      }
    
    e_gadcon_canvas_zone_geometry_get(inst->gcc->gadcon, &cx, &cy, &cw, &ch);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to