415 |
|
|
416 |
if (strncmp("sound", optarg, 5) == 0) |
if (strncmp("sound", optarg, 5) == 0) |
417 |
{ |
{ |
418 |
if (*(optarg + 6) == ':') |
optarg += 5; |
|
{ |
|
419 |
|
|
420 |
if (strncmp("remote", optarg + 7, 6) == 0) |
if (*optarg == ':') |
421 |
flags |= RDP_LOGON_LEAVE_AUDIO; |
{ |
422 |
else if (strncmp("on", optarg + 7, 2) == 0) |
*optarg++; |
423 |
|
while ((p = next_arg(optarg, ','))) |
424 |
{ |
{ |
425 |
|
if (strncmp("remote", optarg, 6) == 0) |
426 |
|
flags |= RDP_LOGON_LEAVE_AUDIO; |
427 |
|
|
428 |
|
if (strncmp("on", optarg, 2) == 0) |
429 |
#ifdef WITH_RDPSND |
#ifdef WITH_RDPSND |
430 |
g_rdpsnd = True; |
g_rdpsnd = True; |
431 |
#else |
#else |
432 |
warning("Not compiled with sound support"); |
warning("Not compiled with sound support"); |
433 |
#endif |
#endif |
434 |
|
|
435 |
|
if (strncmp("off", optarg, 3) == 0) |
436 |
|
g_rdpsnd = False; |
437 |
|
|
438 |
|
optarg = p; |
439 |
} |
} |
440 |
} |
} |
441 |
else |
else |