Skip to content
Snippets Groups Projects
Commit 9f668f76 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

resource: fix uninitialized pointer dereference

This commit fixes a regression from a1924dbd
that (unintentionally) reverted 3505ecb9
parent 2066dde9
No related branches found
No related tags found
No related merge requests found
......@@ -357,9 +357,9 @@ vout_thread_t *input_resource_GetVout(input_resource_t *p_resource,
if (vout_Request(cfg, p_resource->p_input)) {
if (p_resource->p_vout_free == NULL && p_resource->i_vout == 0)
p_resource->p_vout_free = vout;
p_resource->p_vout_free = cfg->vout;
else
vout_Close(vout);
vout_Close(cfg->vout);
vlc_mutex_unlock(&p_resource->lock);
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment