CVS: rdesktop rdpsnd_sun.c,1.12,1.13
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10151
Modified Files:
rdpsnd_sun.c
Log Message:
Correctly init the audio-info structure. Fixes playback-hangs on
OpenBSD after changing volume.
Index: rdpsnd_sun.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_sun.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** rdpsnd_sun.c 7 May 2004 12:01:53 -0000 1.12
--- rdpsnd_sun.c 11 Sep 2004 19:17:48 -0000 1.13
***************
*** 168,176 ****
uint volume;
! if (ioctl(g_dsp_fd, AUDIO_GETINFO, &info) == -1)
! {
! perror("AUDIO_GETINFO");
! return;
! }
volume = (left > right) ? left : right;
--- 168,172 ----
uint volume;
! AUDIO_INITINFO(&info);
volume = (left > right) ? left : right;
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php