Skip to content
Snippets Groups Projects
Commit 6d8848b2 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

resource: notify that the vout stopped if a request fails

parent d4d6ab6b
No related branches found
No related tags found
No related merge requests found
......@@ -506,6 +506,8 @@ vout_thread_t *input_resource_RequestVout(input_resource_t *p_resource,
}
if (vout_Request(&dcfg, vctx, p_resource->p_input)) {
if (vout_rsc->started && vout_state != NULL)
*vout_state = INPUT_RESOURCE_VOUT_STOPPED;
input_resource_PutVoutLocked(p_resource, dcfg.vout, NULL);
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