summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-09-02 23:12:41 +0300
committerStefan Kost <ensonic@users.sf.net>2009-09-02 23:14:20 +0300
commite82e16480d5432223f06224450b0faecad363689 (patch)
tree01f0d64d871570afcffab7ff356c0074acb31894
parentfdf18653b7925e60a72c1b057d9cf2ec46d30257 (diff)
pulsesink: also guard reseting subscribe callback with ifdefs
It is conditionaly set, so do the same when unsetting.
-rw-r--r--ext/pulse/pulsesink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index be64c6e1d..7ead4fedd 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -250,7 +250,9 @@ gst_pulsering_destroy_context (GstPulseRingBuffer * pbuf)
/* Make sure we don't get any further callbacks */
pa_context_set_state_callback (pbuf->context, NULL, NULL);
+#if HAVE_PULSE_0_9_12
pa_context_set_subscribe_callback (pbuf->context, NULL, NULL);
+#endif
pa_context_unref (pbuf->context);
pbuf->context = NULL;