Commit 329bb890 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: fix segmentation fault if initialization fails

(cherry picked from commit 97e88867dde80bfd90e4d1c42d08bde34e1314e3)
parent 34f3f2f9
...@@ -150,6 +150,8 @@ int vout_InitWrapper(vout_thread_t *vout) ...@@ -150,6 +150,8 @@ int vout_InitWrapper(vout_thread_t *vout)
picture_pool_NewFromFormat(&source, picture_pool_NewFromFormat(&source,
__MAX(VOUT_MAX_PICTURES, __MAX(VOUT_MAX_PICTURES,
reserved_picture + decoder_picture - DISPLAY_PICTURE_COUNT)); reserved_picture + decoder_picture - DISPLAY_PICTURE_COUNT));
if (!sys->decoder_pool)
return VLC_EGENERIC;
if (allow_dr) { if (allow_dr) {
msg_Warn(vout, "Not enough direct buffers, using system memory"); msg_Warn(vout, "Not enough direct buffers, using system memory");
sys->dpb_size = 0; 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