Commit 4865252c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/udp: Protect write to circular_buffer_error by mutex

This isnt really needed on most platforms but
fixes CID1362183
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1b05521b
......@@ -605,7 +605,9 @@ static void *circular_buffer_task_tx( void *_URLContext)
} else {
ret = ff_neterrno();
if (ret != AVERROR(EAGAIN) && ret != AVERROR(EINTR)) {
pthread_mutex_lock(&s->mutex);
s->circular_buffer_error = ret;
pthread_mutex_unlock(&s->mutex);
return NULL;
}
}
......
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