[gst-cvs] gst-plugins-good: pulsesink: also guard reseting subscribe callback with ifdefs

Stefan Kost ensonic at kemper.freedesktop.org
Wed Sep 2 13:14:50 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: e82e16480d5432223f06224450b0faecad363689
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=e82e16480d5432223f06224450b0faecad363689

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Wed Sep  2 23:12:41 2009 +0300

pulsesink: also guard reseting subscribe callback with ifdefs

It is conditionaly set, so do the same when unsetting.

---

 ext/pulse/pulsesink.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index be64c6e..7ead4fe 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;





More information about the Gstreamer-commits mailing list