From 42ce624b130ecd3306e42132986e951c110b347d Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Tue, 19 Apr 2022 03:14:24 +0200 Subject: [PATCH] libobs: Remove unnecessary blend_type assignment The code pattern for all other assignments skips the default value. Detected by PVS Studio. --- libobs/obs-scene.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index e435f3d23..884d4699a 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -1064,9 +1064,7 @@ static void scene_load_item(struct obs_scene *scene, obs_data_t *item_data) item->blend_type = OBS_BLEND_NORMAL; if (blend_str) { - if (astrcmpi(blend_str, "normal") == 0) - item->blend_type = OBS_BLEND_NORMAL; - else if (astrcmpi(blend_str, "additive") == 0) + if (astrcmpi(blend_str, "additive") == 0) item->blend_type = OBS_BLEND_ADDITIVE; else if (astrcmpi(blend_str, "subtract") == 0) item->blend_type = OBS_BLEND_SUBTRACT;