Commit d8a5881e authored by Monty Montgomery's avatar Monty Montgomery

Eliminate a crash bug that occurs if the state file requests a

playback device that doesn't exist.



git-svn-id: https://svn.xiph.org/trunk/postfish@7981 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 06f952aa
......@@ -10,7 +10,7 @@
# use the below for x86 and most other platforms where 'float' is 32 bit IEEE754
ADD_DEF= -DUGLY_IEEE754_FLOAT32_HACK=1
ADD_DEF= -DUGLY_IEEE754_FLOAT32_HACK=1 -march=athlon-mp
# use the below for anything without IEE754 floats (eg, VAX)
......
......@@ -79,8 +79,11 @@ void outpanel_state_from_config(int bank){
outset.monitor.source[i]);
config_get_sigat("output_monitor_set",bank,0,0,0,0,&outset.monitor.device);
if(state.monitor.device)
/* don't set a device that doesn't exist */
if(state.monitor.device && outset.monitor.device<monitor_entries)
gtk_combo_box_set_active(GTK_COMBO_BOX(state.monitor.device),outset.monitor.device);
config_get_sigat("output_monitor_set",bank,0,0,0,1,&outset.monitor.bytes);
if(state.monitor.depth)
gtk_combo_box_set_active(GTK_COMBO_BOX(state.monitor.depth),outset.monitor.bytes);
......
#define VERSION "$Id$ "
/* DO NOT EDIT: Automated versioning hack [Sun Oct 10 20:56:54 EDT 2004] */
/* DO NOT EDIT: Automated versioning hack [Mon Oct 11 22:10:04 EDT 2004] */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment