From 004ae7187f9f7fcd0344653ab2d23bdc1a2fdd45 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Mon, 29 Aug 2022 21:55:20 +0100 Subject: [PATCH] reorganise c++ options in build scripts for linux --- linux/src/FFmpegKitConfig.cpp | 8 ++++---- scripts/function-linux.sh | 23 ++++++++++------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/linux/src/FFmpegKitConfig.cpp b/linux/src/FFmpegKitConfig.cpp index c8e61fc..0395b03 100644 --- a/linux/src/FFmpegKitConfig.cpp +++ b/linux/src/FFmpegKitConfig.cpp @@ -407,7 +407,7 @@ static CallbackData *callbackDataRemove() { * @param sessionId session id */ static void registerSessionId(long sessionId) { - std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], 1); + std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], (short)1); } /** @@ -416,7 +416,7 @@ static void registerSessionId(long sessionId) { * @param sessionId session id */ static void removeSession(long sessionId) { - std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], 0); + std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], (short)0); } #ifdef __cplusplus @@ -429,7 +429,7 @@ extern "C" { * @param sessionId session id */ void cancelSession(long sessionId) { - std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], 2); + std::atomic_store(&sessionMap[sessionId % SESSION_MAP_SIZE], (short)2); } /** @@ -770,7 +770,7 @@ void* ffmpegKitInitialize() { sessionHistorySize = 10; for(int i = 0; i