media-playback: Fix unused-parameter warning

master
tytan652 2021-12-13 10:12:55 +01:00 committed by Jim
parent 096ec55c83
commit 865a358a52
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ static int mp_open_codec(struct mp_decode *d, bool hw)
#ifdef USE_NEW_HARDWARE_CODEC_METHOD
if (hw)
init_hw_decoder(d, c);
#else
UNUSED_PARAMETER(hw);
#endif
if (c->thread_count == 1 && c->codec_id != AV_CODEC_ID_PNG &&