mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 01:40:28 +00:00
capture_filter/display: fixed a leak
fixes CID 395233
This commit is contained in:
@@ -183,7 +183,8 @@ static struct video_frame *filter(void *state, struct video_frame *in)
|
||||
pthread_mutex_lock(&s->lock);
|
||||
if (simple_linked_list_size(s->frame_queue) == MAX_QUEUE_LEN) {
|
||||
pthread_mutex_unlock(&s->lock);
|
||||
log_msg(LOG_LEVEL_WARNING, MOD_NAME "Queue full, frame dropped.\n");
|
||||
log_msg(LOG_LEVEL_WARNING, MOD_NAME "Queue full, frame not displayed.\n");
|
||||
vf_free(f);
|
||||
return in;
|
||||
}
|
||||
simple_linked_list_append(s->frame_queue, f);
|
||||
|
||||
Reference in New Issue
Block a user