CVS: rdesktop rdesktop.c,1.96,1.97
Peter Bystr?m <[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-serv4550
Modified Files:
rdesktop.c
Log Message:
make -r sound behave as the other -r switches, but keep backward compatibility i.e. "-r sound" still does the same
Index: rdesktop.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -d -r1.96 -r1.97
*** rdesktop.c 4 Mar 2004 12:43:10 -0000 1.96
--- rdesktop.c 4 Mar 2004 13:23:23 -0000 1.97
***************
*** 416,431 ****
if (strncmp("sound", optarg, 5) == 0)
{
! if (*(optarg + 6) == ':')
! {
! if (strncmp("remote", optarg + 7, 6) == 0)
! flags |= RDP_LOGON_LEAVE_AUDIO;
! else if (strncmp("on", optarg + 7, 2) == 0)
{
#ifdef WITH_RDPSND
! g_rdpsnd = True;
#else
! warning("Not compiled with sound support");
#endif
}
}
--- 416,440 ----
if (strncmp("sound", optarg, 5) == 0)
{
! optarg += 5;
! 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;
#else
! warning("Not compiled with sound support");
#endif
+
+ if (strncmp("off", optarg, 3) == 0)
+ g_rdpsnd = False;
+
+ optarg = p;
}
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click