Commit 1f30a5ff authored by Laurent Aimar's avatar Laurent Aimar

Protect av_register_all call with vlc_avcodec_lock().

parent f0a61cd7
...@@ -121,7 +121,9 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -121,7 +121,9 @@ int OpenDemux( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
vlc_avcodec_lock();
av_register_all(); /* Can be called several times */ av_register_all(); /* Can be called several times */
vlc_avcodec_unlock();
/* Guess format */ /* Guess format */
if( !( fmt = av_probe_input_format( &pd, 1 ) ) ) if( !( fmt = av_probe_input_format( &pd, 1 ) ) )
......
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