Code: Select all
// Show the actual libraries loaded
if (avutil) {
//efm5 debug
//wxLogMessage(wxT("Actual avutil path %s"),
// FileNames::PathFromAddr(avutil->GetSymbol(wxT("avutil_version"))).c_str());
}
if (avcodec) {
//efm5 debug
//wxLogMessage(wxT("Actual avcodec path %s"),
// FileNames::PathFromAddr(avcodec->GetSymbol(wxT("avcodec_version"))).c_str());
}
if (avformat) {
//efm5 debug
//wxLogMessage(wxT("Actual avformat path %s"),
// FileNames::PathFromAddr(avformat->GetSymbol(wxT("avformat_version"))).c_str());
}Code: Select all
FileNames::PathFromAddr(avutil->GetSymbol(wxT("avutil_version"))).c_str()Code: Select all
// Returns a pointer to the symbol on success, or NULL if an error occurred
// or the symbol wasn't found.
void *GetSymbol(const wxString& name, bool *success = NULL) const;Code: Select all
//wxLogMessage(wxT("Actual avutil path %s"),
// FileNames::PathFromAddr(avutil->GetSymbol(wxT("avutil_version"))).c_str());
bool theError = false;
wxString theVersion(wxT("avutil_version"));
void * thePointer = avutil->GetSymbol(theVersion.c_str(), &theError);
wxString thePath = FileNames::PathFromAddr(thePointer);void * thePointer = avutil->GetSymbol(theVersion.c_str(), &theError); As you can see in the picture the complaint is "Can't load symbol from unloaded library".