Skip to content
Snippets Groups Projects
Commit 8c96ebff authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #24637: codecs: clear dlerror() before loading codecs

Reported by Alexandre Lision.
parent 405910b8
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,9 @@ AudioCodecFactory::scanCodecDirectory() ...@@ -207,6 +207,9 @@ AudioCodecFactory::scanCodecDirectory()
sfl::AudioCodec * sfl::AudioCodec *
AudioCodecFactory::loadCodec(const std::string &path) AudioCodecFactory::loadCodec(const std::string &path)
{ {
// Clear any existing error
dlerror();
void * codecHandle = dlopen(path.c_str(), RTLD_NOW); void * codecHandle = dlopen(path.c_str(), RTLD_NOW);
if (!codecHandle) { if (!codecHandle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment