avutil/fifo: Fix thread saftey of av_fifo_generic_peek()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Oct 2015 16:29:04 +0000 (18:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Oct 2015 17:08:42 +0000 (19:08 +0200)
commit147b12162da60da1ebfe38f626e9f82b2102f26b
tree2f392a6d95821230d0a8383070d122d70432565e
parent5bd62a1b3c3356b84818efca3fcaf52da27a32af
avutil/fifo: Fix thread saftey of av_fifo_generic_peek()

changing the context state and restoring it is not safe if another
thread writes data into the fifo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/fifo.c