mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
parse the pasuspend argument like any other boolean in PulseAudio
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2031 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a2121d5e6f
commit
14b974a6d8
2 changed files with 3 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ paplay_LDADD = $(AM_LDADD) libpulse.la $(LIBSNDFILE_LIBS)
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -850,7 +850,7 @@ int main(int argc, char *argv[]) {
|
|||
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 @@ int main(int argc, char *argv[]) {
|
|||
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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue