Please sign in to comment.
[aml] don't load all solibs with RTLD_GLOBAL
This was inadvertant, and a result of the meaning of the flag changing as it moves down the abstraction chain. This flag SHOULD represent whether or not we want debug symbols, which doesn't apply to *nix anyway. Instead it ended up forcing all symbols to GLOBAL, meaning that when loading 2 libs with identical symbol names, the new ones would be ignored. This manifested when loading libamlplayer because it contains ffmpeg's symbols, which were skipped in favor of our internal ones. Ideally this would be fixed further up the chain, but there are so many things wrong I don't know where to start. But for sure, RTLD_GLOBAL has _nothing_ to do with the flag we pass in, and has no business being used here.
- Loading branch information...