mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
properly implement a pa_sink_disconnect() hook
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1243 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
87e64d5845
commit
8180832898
3 changed files with 7 additions and 4 deletions
|
|
@ -93,7 +93,7 @@ pa_core* pa_core_new(pa_mainloop_api *m) {
|
|||
c->is_system_instance = 0;
|
||||
|
||||
pa_hook_init(&c->hook_sink_input_new, c);
|
||||
pa_hook_init(&c->hook_sink_input_disconnect, c);
|
||||
pa_hook_init(&c->hook_sink_disconnect, c);
|
||||
|
||||
pa_property_init(c);
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ void pa_core_free(pa_core *c) {
|
|||
pa_property_cleanup(c);
|
||||
|
||||
pa_hook_free(&c->hook_sink_input_new);
|
||||
pa_hook_free(&c->hook_sink_input_disconnect);
|
||||
pa_hook_free(&c->hook_sink_disconnect);
|
||||
|
||||
pa_xfree(c);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue