Fix bug where it would try to set a blank profile

This commit is contained in:
jp9000 2014-07-13 03:02:18 -07:00
parent 5b12a46d41
commit 2099ffc33b

View File

@ -202,7 +202,7 @@ static inline void set_param(struct obs_x264 *obsx264, const char *param)
static inline void apply_x264_profile(struct obs_x264 *obsx264,
const char *profile)
{
if (!obsx264->context && profile) {
if (!obsx264->context && profile && *profile) {
int ret = x264_param_apply_profile(&obsx264->params, profile);
if (ret != 0)
warn("Failed to set x264 profile '%s'", profile);