stream: call _done after operation callback

This commit is contained in:
Wim Taymans 2020-09-11 11:40:57 +02:00
parent c979f181a5
commit 3b7f2c527c

View file

@ -1307,9 +1307,9 @@ static void on_success(pa_operation *o, void *userdata)
{
struct success_ack *d = userdata;
pa_stream *s = o->stream;
pa_operation_done(o);
if (d->cb)
d->cb(s, 1, d->userdata);
pa_operation_done(o);
}
SPA_EXPORT