Make sure that g_dsp_busy is initialized to False
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@503 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
4c5cfb6a32
commit
62c180be72
@ -29,7 +29,7 @@
|
|||||||
#define MAX_QUEUE 10
|
#define MAX_QUEUE 10
|
||||||
|
|
||||||
int g_dsp_fd;
|
int g_dsp_fd;
|
||||||
BOOL g_dsp_busy;
|
BOOL g_dsp_busy = False;
|
||||||
|
|
||||||
static struct audio_packet
|
static struct audio_packet
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#define MAX_QUEUE 10
|
#define MAX_QUEUE 10
|
||||||
|
|
||||||
int g_dsp_fd;
|
int g_dsp_fd;
|
||||||
BOOL g_dsp_busy;
|
BOOL g_dsp_busy = False;
|
||||||
static BOOL reopened;
|
static BOOL reopened;
|
||||||
static BOOL swapaudio;
|
static BOOL swapaudio;
|
||||||
static short samplewidth;
|
static short samplewidth;
|
||||||
|
4
xwin.c
4
xwin.c
@ -1204,7 +1204,7 @@ ui_select(int rdp_socket)
|
|||||||
|
|
||||||
#ifdef WITH_RDPSND
|
#ifdef WITH_RDPSND
|
||||||
/* FIXME: there should be an API for registering fds */
|
/* FIXME: there should be an API for registering fds */
|
||||||
if (g_rdpsnd && g_dsp_busy)
|
if (g_dsp_busy)
|
||||||
{
|
{
|
||||||
FD_SET(g_dsp_fd, &wfds);
|
FD_SET(g_dsp_fd, &wfds);
|
||||||
n = (g_dsp_fd + 1 > n) ? g_dsp_fd + 1 : n;
|
n = (g_dsp_fd + 1 > n) ? g_dsp_fd + 1 : n;
|
||||||
@ -1224,7 +1224,7 @@ ui_select(int rdp_socket)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#ifdef WITH_RDPSND
|
#ifdef WITH_RDPSND
|
||||||
if (g_rdpsnd && g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds))
|
if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds))
|
||||||
wave_out_play();
|
wave_out_play();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user