fix videotoolbox flag check in ffmpeg-kit build script

This commit is contained in:
Taner Sener 2021-02-18 01:12:57 +00:00
parent bdb9601069
commit 1294183928
2 changed files with 10 additions and 1 deletions

View File

@ -295,6 +295,15 @@ void removeSession(long sessionId) {
atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], 0);
}
/**
* Adds a cancel session request to the session map.
*
* @param sessionId session id
*/
void cancelSession(long sessionId) {
atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], 2);
}
/**
* Checks whether a cancel request for the given session id exists in the session map.
*

View File

@ -43,7 +43,7 @@ fi
# CHECK IF VIDEOTOOLBOX IS ENABLED
VIDEOTOOLBOX_SUPPORT_FLAG=""
if [[ ${LIBRARY_APPLE_VIDEOTOOLBOX} -eq 1 ]]; then
if [[ ${ENABLED_LIBRARIES[$LIBRARY_APPLE_VIDEOTOOLBOX]} -eq 1 ]]; then
VIDEOTOOLBOX_SUPPORT_FLAG="--enable-videotoolbox"
fi