Commit 97e88867 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: fix segmentation fault if initialization fails

parent e307581d
......@@ -150,6 +150,8 @@ int vout_InitWrapper(vout_thread_t *vout)
picture_pool_NewFromFormat(&source,
__MAX(VOUT_MAX_PICTURES,
reserved_picture + decoder_picture - DISPLAY_PICTURE_COUNT));
if (!sys->decoder_pool)
return VLC_EGENERIC;
if (allow_dr) {
msg_Warn(vout, "Not enough direct buffers, using system memory");
sys->dpb_size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment