BUILD: do not build hwaccel module, if empty

This commit is contained in:
Lukas Rucka
2018-06-06 10:50:30 +02:00
parent cd5823ec25
commit 4e884a71bc

View File

@@ -2577,7 +2577,10 @@ then
HW_ACC_OBJ="${HW_ACC_OBJ} src/hwaccel_vaapi.o"
fi
ADD_MODULE("hw_accel", "$HW_ACC_OBJ", "$LAVC_HWACC_LIBS")
if test -n "$HW_ACC_OBJ"
then
ADD_MODULE("hw_accel", "$HW_ACC_OBJ", "$LAVC_HWACC_LIBS")
fi
if test $lavc_hwacc_vdpau_req = yes -a $lavc_hwacc_vdpau = no; then
AC_MSG_ERROR([Could not find hwacc vdpau dependencies!]);