3 @@ -594,6 +594,8 @@ static bool load_faad() {
7 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
9 a->NeAACDecGetCurrentConfiguration = dlsym(handle, "NeAACDecGetCurrentConfiguration");
10 a->NeAACDecSetConfiguration = dlsym(handle, "NeAACDecSetConfiguration");
11 a->NeAACDecOpen = dlsym(handle, "NeAACDecOpen");
14 @@ -620,6 +620,8 @@ static bool load_ff() {
18 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
20 sprintf(name, LIBAVFORMAT, LIBAVFORMAT_VERSION_MAJOR);
21 handle_format = dlopen(name, RTLD_NOW);
25 @@ -241,6 +241,8 @@ static bool load_flac() {
29 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
31 f->FLAC__StreamDecoderErrorStatusString = dlsym(handle, "FLAC__StreamDecoderErrorStatusString");
32 f->FLAC__StreamDecoderStateString = dlsym(handle, "FLAC__StreamDecoderStateString");
33 f->FLAC__stream_decoder_new = dlsym(handle, "FLAC__stream_decoder_new");
36 @@ -168,10 +168,10 @@ static void *ir_thread() {
49 @@ -185,6 +185,8 @@ static bool load_lirc() {
53 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
55 i->lirc_init = dlsym(handle, "lirc_init");
56 i->lirc_deinit = dlsym(handle, "lirc_deinit");
57 i->lirc_readconfig = dlsym(handle, "lirc_readconfig");
60 @@ -365,7 +365,9 @@ static bool load_mad() {
61 LOG_INFO("dlerror: %s", dlerror());
66 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
68 m->mad_stream_init = dlsym(handle, "mad_stream_init");
69 m->mad_frame_init = dlsym(handle, "mad_frame_init");
70 m->mad_synth_init = dlsym(handle, "mad_synth_init");
73 @@ -222,7 +222,9 @@ static bool load_mpg() {
74 LOG_INFO("dlerror: %s", dlerror());
79 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
81 m->mpg123_init = dlsym(handle, "mpg123_init");
82 m->mpg123_feature = dlsym(handle, "mpg123_feature");
83 m->mpg123_rates = dlsym(handle, "mpg123_rates");
86 @@ -251,6 +251,8 @@ static bool load_soxr(void) {
90 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
92 r->soxr_io_spec = dlsym(handle, "soxr_io_spec");
93 r->soxr_quality_spec = dlsym(handle, "soxr_quality_spec");
94 r->soxr_create = dlsym(handle, "soxr_create");
97 @@ -287,6 +287,8 @@ static bool load_vorbis() {
101 + err = dlerror(); // Reset previous dynamic linking error string (if there was)
103 v->ov_read = tremor ? NULL : dlsym(handle, "ov_read");
104 v->ov_read_tremor = tremor ? dlsym(handle, "ov_read") : NULL;
105 v->ov_info = dlsym(handle, "ov_info");