mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 03:13:18 +00:00
fftools/ffmpeg_sched: actually initialize/destroy schedule_lock
This commit is contained in:
parent
5256b2fbe6
commit
06d5dc11db
@ -565,6 +565,8 @@ void sch_free(Scheduler **psch)
|
||||
|
||||
av_freep(&sch->sdp_filename);
|
||||
|
||||
pthread_mutex_destroy(&sch->schedule_lock);
|
||||
|
||||
pthread_mutex_destroy(&sch->mux_ready_lock);
|
||||
|
||||
pthread_mutex_destroy(&sch->mux_done_lock);
|
||||
@ -590,6 +592,10 @@ Scheduler *sch_alloc(void)
|
||||
sch->class = &scheduler_class;
|
||||
sch->sdp_auto = 1;
|
||||
|
||||
ret = pthread_mutex_init(&sch->schedule_lock, NULL);
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
||||
ret = pthread_mutex_init(&sch->mux_ready_lock, NULL);
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user