summaryrefslogtreecommitdiffstats
path: root/src/source.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-15 15:18:33 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-15 15:18:33 +0000
commit78f386ad45dc046d673fca5441dff188a7297059 (patch)
tree9ffa89fb46457318184e0531bb0e68d3817ceb4d /src/source.c
parent98f41f1e70e66dcfc4c457ae47bffb07ed83947f (diff)
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/source.c')
-rw-r--r--src/source.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/source.c b/src/source.c
index 2d5e9bbd..a7fc9a64 100644
--- a/src/source.c
+++ b/src/source.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -24,6 +25,8 @@ struct source* source_new(struct core *core, const char *name, const struct samp
s->link_change_callback = NULL;
s->userdata = NULL;
+ fprintf(stderr, "source: created %u \"%s\"\n", s->index, s->name);
+
return s;
}
@@ -40,6 +43,8 @@ void source_free(struct source *s) {
idxset_remove_by_data(s->core->sources, s, NULL);
+ fprintf(stderr, "source: freed %u \"%s\"\n", s->index, s->name);
+
free(s->name);
free(s);
}