From 6637d983d3246634824d2dc95850dac2a15dd63e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Raimo=20J=C3=A4rvi?= Date: Mon, 26 Sep 2011 00:30:47 +0300 Subject: [PATCH] gst: Fix compiler warnings on 64 bit mingw-w64 Fixes bug #660083. --- gst/gstregistry.c | 10 +++++----- gst/gststructure.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 15d3546..56107c5 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1216,11 +1216,11 @@ gst_registry_scan_path_level (GstRegistryScanContext * context, } else { GST_INFO_OBJECT (context->registry, "cached info for %s is stale", filename); - GST_DEBUG_OBJECT (context->registry, "mtime %ld != %ld or size %" - G_GINT64_FORMAT " != %" G_GINT64_FORMAT " or external dependency " - "env_vars changed: %d or external dependencies changed: %d" - " or old path %s != new path %s", - plugin->file_mtime, file_status.st_mtime, + GST_DEBUG_OBJECT (context->registry, "mtime %" G_GINT64_FORMAT " != %" + G_GINT64_FORMAT " or size %" G_GINT64_FORMAT " != %" + G_GINT64_FORMAT " or external dependency env_vars changed: %d or" + " external dependencies changed: %d or old path %s != new path %s", + (gint64) plugin->file_mtime, (gint64) file_status.st_mtime, (gint64) plugin->file_size, (gint64) file_status.st_size, env_vars_changed, deps_changed, plugin->filename, filename); gst_registry_remove_plugin (context->registry, plugin); diff --git a/gst/gststructure.c b/gst/gststructure.c index d08a061..271ef87 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -169,8 +169,8 @@ gst_structure_validate_name (const gchar * name) while (*s && (g_ascii_isalnum (*s) || strchr ("/-_.:+ ", *s) != NULL)) s++; if (G_UNLIKELY (*s != '\0')) { - GST_WARNING ("Invalid character '%c' at offset %lu in structure name: %s", - *s, ((gulong) s - (gulong) name), name); + GST_WARNING ("Invalid character '%c' at offset %" G_GUINTPTR_FORMAT " in" + " structure name: %s", *s, ((guintptr) s - (guintptr) name), name); return FALSE; } -- 2.7.4