• Andrea Azzarone's avatar
    sound-player: Don't deadlock in finish_cb · 8856a396
    Andrea Azzarone authored
    The function finish_cb can be called as a result of a call to ca_context_cancel
    in cancelled_cb. This will result in a deadlock because, as per documentation,
    g_cancellable_disconnect cannot be called inside the cancellable handler.
    
    It is possible to detect if the call to finish_cb is caused by ca_context_cancel
    checking if error_code == CA_ERROR_CANCELED. To avoid the deadlock we should
    call g_signal_handler_disconnect instead g_cancellable_disconnect if this is the
    case.
    
    !474
    8856a396
Name
Last commit
Last update
.gitlab-ci Loading commit data...
clutter Loading commit data...
cogl Loading commit data...
data Loading commit data...
doc Loading commit data...
po Loading commit data...
src Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
config.h.meson Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mutter.doap Loading commit data...