mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
avcodec: Add av_cold to flush,init,close functions missing it
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
James Almer
parent
bc545bae3b
commit
1df63acdc4
@@ -129,7 +129,7 @@ static void *executor_worker_task(void *data)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
|
||||
static av_cold void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
|
||||
{
|
||||
if (e->thread_count) {
|
||||
//signal die
|
||||
@@ -153,7 +153,7 @@ static void executor_free(FFExecutor *e, const int has_lock, const int has_cond)
|
||||
av_free(e);
|
||||
}
|
||||
|
||||
FFExecutor* ff_executor_alloc(const FFTaskCallbacks *cb, int thread_count)
|
||||
av_cold FFExecutor* ff_executor_alloc(const FFTaskCallbacks *cb, int thread_count)
|
||||
{
|
||||
FFExecutor *e;
|
||||
int has_lock = 0, has_cond = 0;
|
||||
@@ -199,7 +199,7 @@ free_executor:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ff_executor_free(FFExecutor **executor)
|
||||
av_cold void ff_executor_free(FFExecutor **executor)
|
||||
{
|
||||
int thread_count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user