changeset 2481:0e9a5504a246

libdl checking added
author alex
date Fri, 26 Oct 2001 13:39:15 +0000
parents 0276bd06cbc6
children 4733bb1a9b72
files xacodec.c
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xacodec.c	Fri Oct 26 10:42:33 2001 +0000
+++ b/xacodec.c	Fri Oct 26 13:39:15 2001 +0000
@@ -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 @@
 }
 
 /* *** 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 */