server: Reset encoder callback on frame done

pull/65/head
Andri Yngvason 2022-06-29 11:36:05 +00:00
parent 4eb7a3a559
commit b8122725e2
1 changed files with 2 additions and 0 deletions

View File

@ -1404,6 +1404,8 @@ static void on_encode_frame_done(struct encoder* encoder, struct rcbuf* result,
uint64_t pts)
{
struct nvnc_client* client = encoder->userdata;
client->encoder->on_done = NULL;
client->encoder->userdata = NULL;
finish_fb_update(client, result, encoder->n_rects, pts);
client_unref(client);
}