From: Tim Walker Date: Sat, 10 Sep 2016 22:42:59 +0000 (+0200) Subject: QSV: merge fix from a2d31ec1c6109424d193832aa83db6958292d797 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b14bc935fa01c295afc6acc42df5c4c111d4100;p=handbrake QSV: merge fix from a2d31ec1c6109424d193832aa83db6958292d797 The fix landed after the original QSV/libav bump patchset. --- diff --git a/libhb/qsv_libav.c b/libhb/qsv_libav.c index dac7733c3..0222be9c7 100644 --- a/libhb/qsv_libav.c +++ b/libhb/qsv_libav.c @@ -538,10 +538,14 @@ void av_qsv_list_close(av_qsv_list ** _l) if (l->mutex){ mut_ret = pthread_mutex_unlock(l->mutex); - if( mut_ret ) + if (mut_ret) hb_log("QSV: pthread_mutex_unlock issue[%d] at %s", mut_ret, __FUNCTION__); - mut_ret = pthread_mutex_destroy(&l->mutex); + mut_ret = pthread_mutex_destroy(l->mutex); + if (mut_ret) + hb_log("QSV: pthread_mutex_destroy issue[%d] at %s", mut_ret, __FUNCTION__); mut_ret = pthread_mutexattr_destroy(&l->mta); + if (mut_ret) + hb_log("QSV: pthread_mutexattr_destroy issue[%d] at %s", mut_ret, __FUNCTION__); } av_freep(_l); }