avdevice/alldevices: make avdevice_register_all thread safe
authorMuhammad Faiz <mfcc64@gmail.com>
Tue, 7 Mar 2017 08:55:38 +0000 (15:55 +0700)
committerMuhammad Faiz <mfcc64@gmail.com>
Tue, 7 Mar 2017 13:34:44 +0000 (20:34 +0700)
commit776f289c0fe82c4e3418a7c504ae3247eb10ffd7
tree6753811c8665fb01b8c921c29deeedca86ba4a2a
parentaf7010ad0557fe66d35886581eecebf02e92637c
avdevice/alldevices: make avdevice_register_all thread safe

use ff_thread_once

Suggested-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
libavdevice/alldevices.c
libavdevice/avdevice.h