summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-11-27 21:56:35 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-12-05 21:01:17 +0100
commit25fec8595d3a050d926f8145729288ae6e8d6a1a (patch)
tree7ee6e947d70eee3bacab24d6db88820ff8d83228 /libavcodec/internal.h
parent538196050197e41e98da0de36b479992387def63 (diff)
avcodec: add ff_lock/unlock_avcodec functions.
Will be used in future patches, together with the variable that allows checking whether the lock is held. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 01620fa125..2d3433f434 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -129,6 +129,10 @@ void ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
*/
void ff_packet_free_side_data(AVPacket *pkt);
+extern volatile int ff_avcodec_locked;
+int ff_lock_avcodec(AVCodecContext *log_ctx);
+int ff_unlock_avcodec(void);
+
int avpriv_lock_avformat(void);
int avpriv_unlock_avformat(void);