Correctly check errors if preset cannot be found.

This commit is contained in:
Hans-Kristian Arntzen 2016-12-03 16:05:04 +01:00
parent 0c74d19112
commit 53c30cacd5

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()))