We've already set an initial reference count of 1 so don't count it up again.
authorPierre Ossman <ossman@cendio.se>
Tue, 7 Mar 2006 16:04:32 +0000 (16:04 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 7 Mar 2006 16:04:32 +0000 (16:04 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@634 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/polyp/stream.c

index ab6ab40..746ea9f 100644 (file)
@@ -103,7 +103,7 @@ pa_stream *pa_stream_new(pa_context *c, const char *name, const pa_sample_spec *
 
     PA_LLIST_PREPEND(pa_stream, c->streams, s);
 
-    return pa_stream_ref(s);
+    return s;
 }
 
 static void hashmap_free_func(void *p, void *userdata) {