project: More warnings fixed

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-01-14 01:39:13 +01:00
parent 844379f761
commit b306cebd6b
3 changed files with 4 additions and 18 deletions

View file

@ -143,14 +143,7 @@ void debug_handler::get_properties(obs_properties_t*, const AVCodec* codec, AVCo
case AV_OPT_TYPE_STRING:
out = opt->default_val.str;
break;
case AV_OPT_TYPE_BINARY:
case AV_OPT_TYPE_IMAGE_SIZE:
case AV_OPT_TYPE_PIXEL_FMT:
case AV_OPT_TYPE_SAMPLE_FMT:
case AV_OPT_TYPE_VIDEO_RATE:
case AV_OPT_TYPE_DURATION:
case AV_OPT_TYPE_COLOR:
case AV_OPT_TYPE_CHANNEL_LAYOUT:
default:
break;
}
@ -187,14 +180,7 @@ void debug_handler::get_properties(obs_properties_t*, const AVCodec* codec, AVCo
case AV_OPT_TYPE_STRING:
out = opt->default_val.str ? opt->default_val.str : "<invalid>";
break;
case AV_OPT_TYPE_BINARY:
case AV_OPT_TYPE_IMAGE_SIZE:
case AV_OPT_TYPE_PIXEL_FMT:
case AV_OPT_TYPE_SAMPLE_FMT:
case AV_OPT_TYPE_VIDEO_RATE:
case AV_OPT_TYPE_DURATION:
case AV_OPT_TYPE_COLOR:
case AV_OPT_TYPE_CHANNEL_LAYOUT:
default:
break;
}
}

View file

@ -112,8 +112,9 @@ const char* tools::get_color_space_name(AVColorSpace v)
return "BT.2100";
case AVCOL_SPC_NB:
return "Not Part of ABI";
default:
return "Unknown";
}
return "Unknown";
}
const char* tools::get_error_description(int error)

View file

@ -141,7 +141,6 @@ bool obs::tools::obs_properties_remove_by_name(obs_properties_t* props, const ch
}
auto rprops = reinterpret_cast<_hack_obs_properties*>(props);
auto rprop = reinterpret_cast<_hack_obs_property*>(obs_properties_get(props, name));
for (_hack_obs_property *el_prev = rprops->first_property, *el_cur = el_prev; el_cur != nullptr;
el_prev = el_cur, el_cur = el_cur->next) {