Merge pull request #4142 from Themaister/master

Correctly check errors if preset cannot be found.
This commit is contained in:
Twinaphex 2016-12-03 16:11:11 +01:00 committed by GitHub
commit 37d129a13d

View File

@ -2851,7 +2851,7 @@ vulkan_filter_chain_t *vulkan_filter_chain_create_from_preset(
return nullptr;
unique_ptr<config_file_t, ConfigDeleter> conf{ config_file_new(path) };
if (!path)
if (!conf)
return nullptr;
if (!video_shader_read_conf_cgp(conf.get(), shader.get()))