[xiph-commits] r7981 - trunk/postfish

xiphmont at motherfish-iii.xiph.org xiphmont at motherfish-iii.xiph.org
Mon Oct 11 18:48:06 PDT 2004


Author: xiphmont
Date: 2004-10-11 18:48:06 -0700 (Mon, 11 Oct 2004)
New Revision: 7981

Modified:
   trunk/postfish/Makefile
   trunk/postfish/outpanel.c
   trunk/postfish/version.h
Log:
Eliminate a crash bug that occurs if the state file requests a
playback device that doesn't exist.



Modified: trunk/postfish/Makefile
===================================================================
--- trunk/postfish/Makefile	2004-10-11 14:52:40 UTC (rev 7980)
+++ trunk/postfish/Makefile	2004-10-12 01:48:06 UTC (rev 7981)
@@ -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)
 

Modified: trunk/postfish/outpanel.c
===================================================================
--- trunk/postfish/outpanel.c	2004-10-11 14:52:40 UTC (rev 7980)
+++ trunk/postfish/outpanel.c	2004-10-12 01:48:06 UTC (rev 7981)
@@ -79,8 +79,11 @@
 				 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);

Modified: trunk/postfish/version.h
===================================================================
--- trunk/postfish/version.h	2004-10-11 14:52:40 UTC (rev 7980)
+++ trunk/postfish/version.h	2004-10-12 01:48:06 UTC (rev 7981)
@@ -1,2 +1,2 @@
 #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] */



More information about the commits mailing list