mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
pulsesink: also guard reseting subscribe callback with ifdefs
It is conditionaly set, so do the same when unsetting.
This commit is contained in:
parent
fdf18653b7
commit
e82e16480d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue