summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/alldevices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c
index 280a260bd3..a8ed53ae5d 100644
--- a/libavdevice/alldevices.c
+++ b/libavdevice/alldevices.c
@@ -73,7 +73,7 @@ static void register_all(void)
void avdevice_register_all(void)
{
- AVOnce control = AV_ONCE_INIT;
+ static AVOnce control = AV_ONCE_INIT;
ff_thread_once(&control, register_all);
}