]> code.delx.au - pulseaudio/blobdiff - src/pulse/context.c
follow rename of pstream_close() to pstream_unlink()
[pulseaudio] / src / pulse / context.c
index 0dba9051e9ea1d0ef6ee75e5ec509c73e7cfdd7b..8125c64f00f727678375a31e5223b0d41e588ed6 100644 (file)
@@ -183,7 +183,7 @@ static void context_free(pa_context *c) {
     if (c->pdispatch)
         pa_pdispatch_unref(c->pdispatch);
     if (c->pstream) {
-        pa_pstream_close(c->pstream);
+        pa_pstream_unlink(c->pstream);
         pa_pstream_unref(c->pstream);
     }
 
@@ -250,7 +250,7 @@ void pa_context_set_state(pa_context *c, pa_context_state_t st) {
         c->pdispatch = NULL;
 
         if (c->pstream) {
-            pa_pstream_close(c->pstream);
+            pa_pstream_unlink(c->pstream);
             pa_pstream_unref(c->pstream);
         }
         c->pstream = NULL;