CVS: rdesktop rdpsnd.c,1.34,1.35

Michael Gernoth <[email protected]> Sun, 24 Dec 2006 07:22:17 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5492

Modified Files:
	rdpsnd.c 
Log Message:
fix device_available which I broke in a previous commit


Index: rdpsnd.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** rdpsnd.c	24 Dec 2006 13:48:50 -0000	1.34
--- rdpsnd.c	24 Dec 2006 15:22:15 -0000	1.35
***************
*** 143,150 ****
  
  	if (!current_driver)
! 		rdpsnd_auto_select();
  
! 	if (current_driver)
  	{
  		device_available = True;
  	}
--- 143,151 ----
  
  	if (!current_driver)
! 		device_available = rdpsnd_auto_select();
  
! 	if (current_driver && !device_available && current_driver->wave_out_open())
  	{
+ 		current_driver->wave_out_close();
  		device_available = True;
  	}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV