summaryrefslogtreecommitdiffstats
path: root/xacodec.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-26 13:39:15 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-26 13:39:15 +0000
commit6f67e58bcecefed7f0f14719b5cbea13c7969769 (patch)
tree4ad35f1c4a237313c62762155cb74450cfb02542 /xacodec.c
parent097f268a0d686916bfff1da638e7caf48a49b53b (diff)
downloadmpv-6f67e58bcecefed7f0f14719b5cbea13c7969769.tar.bz2
mpv-6f67e58bcecefed7f0f14719b5cbea13c7969769.tar.xz
libdl checking added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2482 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'xacodec.c')
-rw-r--r--xacodec.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/xacodec.c b/xacodec.c
index d5d1cbf921..0fa490ddbb 100644
--- a/xacodec.c
+++ b/xacodec.c
@@ -30,6 +30,8 @@
#include "libvo/img_format.h"
#include "xacodec.h"
+#ifdef HAVE_LIBDL
+
#if 0
typedef char xaBYTE;
typedef short xaSHORT;
@@ -744,3 +746,25 @@ void *XA_YUV221111_Func(unsigned int image_type)
}
/* *** EOF XANIM *** */
+
+#else /* HAVE_LIBDL */
+
+int xacodec_init_video(void)
+{
+ mp_msg(MSGT_DEMUX, MSGL_FATAL, "xacodec needs libdl to work!\n");
+ return 0;
+}
+
+void xacodec_decode_frame(void)
+{
+ mp_msg(MSGT_DEMUX, MSGL_FATAL, "xacodec needs libdl to work!\n");
+ return NULL;
+}
+
+void xacodec_exit(void)
+{
+ mp_msg(MSGT_DEMUX, MSGL_FATAL, "xacodec needs libdl to work!\n");
+ return;
+}
+
+#endif /* HAVE_LIBDL */