obs_ffmpeg: Explicitly mark variables as unused

This commit is contained in:
PatTheMav 2022-06-20 09:49:32 +02:00 committed by Matt Gajownik
parent fa7047c418
commit 62c6a6d223
2 changed files with 5 additions and 3 deletions

View file

@ -290,6 +290,8 @@ static void *nvenc_create_internal(obs_data_t *settings, obs_encoder_t *encoder,
on_init_error, on_first_packet))
goto fail;
} else
#else
UNUSED_PARAMETER(hevc);
#endif
{
if (!ffmpeg_video_encoder_init(&enc->ffve, enc, settings,

View file

@ -142,9 +142,9 @@ void ffmpeg_video_encoder_free(struct ffmpeg_video_encoder *enc)
}
bool ffmpeg_video_encoder_init(struct ffmpeg_video_encoder *enc, void *parent,
obs_data_t *settings, obs_encoder_t *encoder,
const char *enc_lib, const char *enc_lib2,
const char *enc_name,
obs_data_t *settings OBS_UNUSED,
obs_encoder_t *encoder, const char *enc_lib,
const char *enc_lib2, const char *enc_name,
init_error_cb on_init_error,
first_packet_cb on_first_packet)
{