Lines 77-83
bool DynaLink::Open(const char *name)
Link Here
|
77 |
if (InternalOpen(".", name)) |
77 |
if (InternalOpen(".", name)) |
78 |
return true; |
78 |
return true; |
79 |
|
79 |
|
80 |
return InternalOpen("/usr/local/lib", name); |
80 |
return InternalOpen("/usr/lib", name); |
81 |
} |
81 |
} |
82 |
|
82 |
|
83 |
bool DynaLink::InternalOpen(const char * dir, const char *name) |
83 |
bool DynaLink::InternalOpen(const char * dir, const char *name) |
Lines 98-106
bool DynaLink::InternalOpen(const char * dir, const char *name)
Link Here
|
98 |
return false; |
98 |
return false; |
99 |
} |
99 |
} |
100 |
|
100 |
|
|
|
101 |
/* |
101 |
#ifndef _WIN32 |
102 |
#ifndef _WIN32 |
102 |
strcat(path, ".so"); |
103 |
strcat(path, ".so"); |
103 |
#endif |
104 |
#endif |
|
|
105 |
*/ |
104 |
|
106 |
|
105 |
// Load the Libary |
107 |
// Load the Libary |
106 |
#ifdef _WIN32 |
108 |
#ifdef _WIN32 |
Lines 215-228
bool FFMPEGLibrary::Load(int ver)
Link Here
|
215 |
|
217 |
|
216 |
if (libAvcodec.Open("libavcodec")) |
218 |
if (libAvcodec.Open("libavcodec")) |
217 |
seperateLibAvutil = false; |
219 |
seperateLibAvutil = false; |
218 |
else if (libAvcodec.Open("avcodec-51") || libAvcodec.Open("avcodec-52")) |
220 |
else if (libAvcodec.Open("avcodec-51") || libAvcodec.Open("libavcodec.so.52")) |
219 |
seperateLibAvutil = true; |
221 |
seperateLibAvutil = true; |
220 |
else { |
222 |
else { |
221 |
TRACE (1, _codecString << "\tDYNA\tFailed to load FFMPEG libavcodec library"); |
223 |
TRACE (1, _codecString << "\tDYNA\tFailed to load FFMPEG libavcodec library"); |
222 |
return false; |
224 |
return false; |
223 |
} |
225 |
} |
224 |
|
226 |
|
225 |
if (seperateLibAvutil && !(libAvutil.Open("avutil-50") || libAvutil.Open("avutil-49")) ) { |
227 |
if (seperateLibAvutil && !(libAvutil.Open("libavutil.so.50") || libAvutil.Open("avutil-49")) ) { |
226 |
TRACE (1, _codecString << "\tDYNA\tFailed to load FFMPEG libavutil library"); |
228 |
TRACE (1, _codecString << "\tDYNA\tFailed to load FFMPEG libavutil library"); |
227 |
return false; |
229 |
return false; |
228 |
} |
230 |
} |