Commit 390e028c authored by Aleksandr Slobodeniuk's avatar Aleksandr Slobodeniuk Committed by Michael Niedermayer

avutil/threadmessage: fix error return in case of av_fifo_alloc failure

Reviewed-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent df806605
......@@ -69,7 +69,7 @@ int av_thread_message_queue_alloc(AVThreadMessageQueue **mq,
pthread_cond_destroy(&rmq->cond_recv);
pthread_mutex_destroy(&rmq->lock);
av_free(rmq);
return AVERROR(ret);
return AVERROR(ENOMEM);
}
rmq->elsize = elsize;
*mq = rmq;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment