fix videotoolbox flag check in ffmpeg-kit build script
This commit is contained in:
parent
bdb9601069
commit
1294183928
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user