diff options
author | Jan Klemkow <web2p10@wemelug.de> | 2010-07-13 18:55:29 +0200 |
---|---|---|
committer | Jan Klemkow <web2p10@wemelug.de> | 2010-07-13 18:55:29 +0200 |
commit | 5dd57288b078e1201bd53a982648a0a18e56bc46 (patch) | |
tree | aa432ca65ce489284c6db06035d4ad1b869e8d9d /src/pa-sink-ctl.c | |
parent | 3138211b2b00e1b4bdcc2d29486473969285da1e (diff) | |
download | pa-sink-ctl-5dd57288b078e1201bd53a982648a0a18e56bc46.tar.gz pa-sink-ctl-5dd57288b078e1201bd53a982648a0a18e56bc46.tar.bz2 pa-sink-ctl-5dd57288b078e1201bd53a982648a0a18e56bc46.zip |
code cleanup
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r-- | src/pa-sink-ctl.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index dac91c0..0d3a5bc 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -84,8 +84,8 @@ void context_state_callback(pa_context *c, void *userdata) { case PA_CONTEXT_READY: // printf("Menue\n"); collect_all_info(); -// pa_operation_unref(pa_context_get_sink_input_info_list(c, get_sink_input_info_callback, NULL)); break; + default: printf("unknown state\n"); break; @@ -142,24 +142,6 @@ void get_sink_input_info_callback(pa_context *c, const pa_sink_input_info *i, in snprintf(t, sizeof(t), "%u", i->owner_module); snprintf(k, sizeof(k), "%u", i->client); -/* printf( "Sink Input #%u" - "\tClient: %s" - "\tSink: %u" - "\tMute: %d" - "\tVolume: %s" - "\tname: %s" - "\tpid: %s\n", - i->index, - i->client != PA_INVALID_INDEX ? k : "n/a", - i->sink, - i->mute, - pa_cvolume_snprint(cv, sizeof(cv), &i->volume), - pa_proplist_gets(i->proplist, "application.name"), - pa_proplist_gets(i->proplist, "application.process.id")); -*/ - -// const char *name = pa_proplist_gets(i->proplist, "application.name"); - int sink_num = i->sink; int counter = sink_list[sink_num]->input_counter; // check the length of the list |