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

vout: fix uninitialized pointer dereference

A failing vout_Request() on a re-used vout caused to save an invalid vout
pointer.

This also fixes the following warning: ‘vout’ may be used uninitialized in this
function [-Wmaybe-uninitialized] input_resource_PutVout(p_resource, vout);

Regression from 4586ffaf
parent e7cce389
No related branches found
No related tags found
No related merge requests found
......@@ -401,7 +401,7 @@ vout_thread_t *input_resource_GetVout(input_resource_t *p_resource,
if (vout_Request(cfg, p_resource->p_input)) {
vlc_mutex_unlock(&p_resource->lock);
input_resource_PutVout(p_resource, vout);
input_resource_PutVout(p_resource, cfg->vout);
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