[pulseaudio-commits] r2031 - in /trunk/src: Makefile.am utils/pactl.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Nov 8 14:42:34 PST 2007


Author: lennart
Date: Thu Nov  8 23:42:33 2007
New Revision: 2031

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2031&root=pulseaudio&view=rev
Log:
parse the pasuspend argument like any other boolean in PulseAudio

Modified:
    trunk/src/Makefile.am
    trunk/src/utils/pactl.c

Modified: trunk/src/Makefile.am
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/Makefile.am?rev=2031&root=pulseaudio&r1=2030&r2=2031&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Thu Nov  8 23:42:33 2007
@@ -185,7 +185,7 @@
 paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
 paplay_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
 
-pactl_SOURCES = utils/pactl.c
+pactl_SOURCES = utils/pactl.c pulsecore/core-util.c pulsecore/core-util.h pulsecore/core-error.c pulsecore/core-error.h pulsecore/log.c pulsecore/log.h pulsecore/once.c pulsecore/once.h $(PA_THREAD_OBJS)
 pactl_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
 pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
 pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

Modified: trunk/src/utils/pactl.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/pactl.c?rev=2031&root=pulseaudio&r1=2030&r2=2031&view=diff
==============================================================================
--- trunk/src/utils/pactl.c (original)
+++ trunk/src/utils/pactl.c Thu Nov  8 23:42:33 2007
@@ -850,7 +850,7 @@
                 goto quit;
             }
 
-            suspend = !!atoi(argv[argc-1]);
+            suspend = pa_parse_boolean(argv[argc-1]);
 
             if (argc > optind+2)
                 sink_name = pa_xstrdup(argv[optind+1]);
@@ -863,7 +863,7 @@
                 goto quit;
             }
 
-            suspend = !!atoi(argv[argc-1]);
+            suspend = pa_parse_boolean(argv[argc-1]);
 
             if (argc > optind+2)
                 source_name = pa_xstrdup(argv[optind+1]);




More information about the pulseaudio-commits mailing list