summaryrefslogtreecommitdiff
path: root/src/xine-engine/load_plugins.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2003-04-20 21:13:21 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2003-04-20 21:13:21 +0000
commitfeacf7fa8788c911b241385e40c631362af50395 (patch)
tree20491c9acd09fc0240ba7e349dbebd343a7fafc4 /src/xine-engine/load_plugins.c
parent5031bfdd4c2a17d09804e99447d4f9cbae81a7b8 (diff)
downloadxine-lib-feacf7fa8788c911b241385e40c631362af50395.tar.gz
xine-lib-feacf7fa8788c911b241385e40c631362af50395.tar.bz2
merging in win32 port
CVS patchset: 4643 CVS date: 2003/04/20 21:13:21
Diffstat (limited to 'src/xine-engine/load_plugins.c')
-rw-r--r--src/xine-engine/load_plugins.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c
index cd96eb4b0..cfb3af0f7 100644
--- a/src/xine-engine/load_plugins.c
+++ b/src/xine-engine/load_plugins.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: load_plugins.c,v 1.147 2003/04/17 19:01:23 miguelfreitas Exp $
+ * $Id: load_plugins.c,v 1.148 2003/04/20 21:13:22 guenter Exp $
*
*
* Load input/demux/audio_out/video_out/codec plugins
@@ -513,8 +513,14 @@ static void save_plugin_list(FILE *fp, xine_list_t *plugins) {
while (node) {
fprintf(fp, "[%s]\n", node->filename );
+
+#ifndef _MSC_VER
fprintf(fp, "size=%llu\n", (unsigned long long) node->filesize );
fprintf(fp, "mtime=%llu\n", (unsigned long long) node->filemtime );
+#else
+ fprintf(fp, "size=%llu\n", (uint64_t) node->filesize );
+ fprintf(fp, "mtime=%llu\n", (uint64_t) node->filemtime );
+#endif /* _MSC_VER */
fprintf(fp, "type=%d\n", node->info->type );
fprintf(fp, "api=%d\n", node->info->API );
@@ -568,7 +574,13 @@ static void load_plugin_list(FILE *fp, xine_list_t *plugins) {
ao_info_t *ao_info = NULL;
post_info_t *post_info = NULL;
int i;
+
+#ifndef _MSC_VER
unsigned long long llu;
+#else
+ uint64_t llu;
+#endif /* _MSC_VER */
+
unsigned long lu;
char line[1024];
char *value;
@@ -929,18 +941,26 @@ void scan_plugins (xine_t *this) {
#ifdef LOG
printf("load_plugins: scan_plugins()\n");
#endif
+
+/* TODO - This needs to be fixed for WIN32 */
+#ifndef WIN32
if (this == NULL || this->config == NULL) {
fprintf(stderr, "%s(%s@%d): parameter should be non null, exiting\n",
__FILE__, __XINE_FUNCTION__, __LINE__);
abort();
}
+#endif
homedir = xine_get_homedir();
this->plugin_catalog = _new_catalog();
load_cached_catalog (this);
if ( !(pluginpath = getenv("XINE_PLUGIN_PATH")) ){
+#ifndef _MSC_VER
pluginpath = "~/.xine/plugins:" XINE_PLUGINDIR;
+#else
+ pluginpath = XINE_PLUGINDIR;
+#endif
}
plugindir = xine_xmalloc(strlen(pluginpath)+strlen(homedir)+2);
j=0;