diff options
author | Anssi Hannula <anssi@xbmc.org> | 2011-02-01 17:53:11 +0200 |
---|---|---|
committer | Anssi Hannula <anssi@xbmc.org> | 2011-02-03 00:03:01 +0200 |
commit | 02401f5724625099f49f0af9cbfdde809202917a (patch) | |
tree | fd1013d0896237ad7fc2232b792d00d4d5939ba5 /lib/DllAvFormat.h | |
parent | 45349b6529f1be35f18fac7a8da909aa5d086807 (diff) |
changed: load dependencies of ffmpeg libraries automatically
Diffstat (limited to 'lib/DllAvFormat.h')
-rw-r--r-- | lib/DllAvFormat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/DllAvFormat.h b/lib/DllAvFormat.h index f2eb9c4dfb..581bf37eca 100644 --- a/lib/DllAvFormat.h +++ b/lib/DllAvFormat.h @@ -313,6 +313,11 @@ class DllAvFormat : public DllDynamic, DllAvFormatInterface RESOLVE_METHOD(av_write_frame) RESOLVE_METHOD(av_metadata_set2) END_METHOD_RESOLVE() + + /* dependencies of libavformat */ + DllAvCodec m_dllAvCodec; + // DllAvUtil loaded implicitely by m_dllAvCodec + public: void av_register_all() { @@ -324,6 +329,13 @@ public: CSingleLock lock(DllAvCodec::m_critSection); return(av_find_stream_info_dont_call(ic)); } + + virtual bool Load() + { + if (!m_dllAvCodec.Load()) + return false; + return DllDynamic::Load(); + } }; #endif |