make -r sound behave as the other -r switches, but keep backward compatibility i.e. "-r sound" still does the same
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@628 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
6d63bda2e7
commit
5d12c1d588
23
rdesktop.c
23
rdesktop.c
@ -415,18 +415,27 @@ main(int argc, char *argv[])
|
||||
|
||||
if (strncmp("sound", optarg, 5) == 0)
|
||||
{
|
||||
if (*(optarg + 6) == ':')
|
||||
{
|
||||
optarg += 5;
|
||||
|
||||
if (strncmp("remote", optarg + 7, 6) == 0)
|
||||
flags |= RDP_LOGON_LEAVE_AUDIO;
|
||||
else if (strncmp("on", optarg + 7, 2) == 0)
|
||||
if (*optarg == ':')
|
||||
{
|
||||
*optarg++;
|
||||
while ((p = next_arg(optarg, ',')))
|
||||
{
|
||||
if (strncmp("remote", optarg, 6) == 0)
|
||||
flags |= RDP_LOGON_LEAVE_AUDIO;
|
||||
|
||||
if (strncmp("on", optarg, 2) == 0)
|
||||
#ifdef WITH_RDPSND
|
||||
g_rdpsnd = True;
|
||||
g_rdpsnd = True;
|
||||
#else
|
||||
warning("Not compiled with sound support");
|
||||
warning("Not compiled with sound support");
|
||||
#endif
|
||||
|
||||
if (strncmp("off", optarg, 3) == 0)
|
||||
g_rdpsnd = False;
|
||||
|
||||
optarg = p;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user