aboutsummaryrefslogtreecommitdiff
path: root/lib/DllSwScale.h
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@xbmc.org>2011-02-01 17:53:11 +0200
committerAnssi Hannula <anssi@xbmc.org>2011-02-03 00:03:01 +0200
commit02401f5724625099f49f0af9cbfdde809202917a (patch)
treefd1013d0896237ad7fc2232b792d00d4d5939ba5 /lib/DllSwScale.h
parent45349b6529f1be35f18fac7a8da909aa5d086807 (diff)
changed: load dependencies of ffmpeg libraries automatically
Diffstat (limited to 'lib/DllSwScale.h')
-rw-r--r--lib/DllSwScale.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/DllSwScale.h b/lib/DllSwScale.h
index 0b90186b9e..1a67e58d18 100644
--- a/lib/DllSwScale.h
+++ b/lib/DllSwScale.h
@@ -158,6 +158,17 @@ class DllSwScale : public DllDynamic, public DllSwScaleInterface
RESOLVE_METHOD(sws_rgb2rgb_init)
RESOLVE_METHOD(sws_freeContext)
END_METHOD_RESOLVE()
+
+ /* dependency of libswscale */
+ DllAvUtil m_dllAvUtil;
+
+public:
+ virtual bool Load()
+ {
+ if (!m_dllAvUtil.Load())
+ return false;
+ return DllDynamic::Load();
+ }
};
#endif