summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog16
-rw-r--r--gst/gst-i18n-lib.h2
-rw-r--r--gst/gstregistry.c17
-rw-r--r--gst/parse/types.h4
-rw-r--r--tools/gst-inspect.c2
-rw-r--r--tools/gst-launch.c6
6 files changed, 30 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index f6f42f862..90970bdb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
2005-10-11 Thomas Vander Stichele <thomas at apestaart dot org>
+ * gst/gst-i18n-lib.h:
+ check for ENABLE_NLS, not GETTEXT_PACKAGE
+ * gst/gstregistry.c: (gst_registry_add_plugin),
+ (gst_registry_scan_path_level),
+ (_gst_registry_remove_cache_plugins):
+ protect possibly NULL strings
+ * gst/parse/types.h:
+ config.h already included before
+ * tools/gst-inspect.c: (main):
+ sys/wait.h also doesn´t exist on mingw, so change the ifdef check
+ check for ENABLE_NLS, not GETTEXT_PACKAGE
+ * tools/gst-launch.c: (main):
+ check for ENABLE_NLS, not GETTEXT_PACKAGE
+
+2005-10-11 Thomas Vander Stichele <thomas at apestaart dot org>
+
* configure.ac:
if we don't have glib, fail before testing 2.8
* gst/base/gstbasetransform.c: (gst_base_transform_change_state):
diff --git a/gst/gst-i18n-lib.h b/gst/gst-i18n-lib.h
index a68d50504..48269ec39 100644
--- a/gst/gst-i18n-lib.h
+++ b/gst/gst-i18n-lib.h
@@ -37,7 +37,7 @@
/* FIXME: if we need it, we can add Q_ as well, like in glib */
#else
-
+#undef GETTEXT_PACKAGE /* could still be defined in config.h */
#define GETTEXT_PACKAGE NULL
#define _(String) String
#define N_(String) String
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index ea2e9c6eb..48404f070 100644
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -293,13 +293,13 @@ gst_registry_add_plugin (GstRegistry * registry, GstPlugin * plugin)
if (existing_plugin) {
GST_DEBUG_OBJECT (registry,
"Replacing existing plugin %p with new plugin %p for filename \"%s\"",
- existing_plugin, plugin, plugin->filename);
+ existing_plugin, plugin, GST_STR_NULL (plugin->filename));
registry->plugins = g_list_remove (registry->plugins, existing_plugin);
gst_object_unref (existing_plugin);
}
GST_DEBUG_OBJECT (registry, "adding plugin %p for filename \"%s\"",
- plugin, plugin->filename);
+ plugin, GST_STR_NULL (plugin->filename));
registry->plugins = g_list_prepend (registry->plugins, plugin);
@@ -307,8 +307,8 @@ gst_registry_add_plugin (GstRegistry * registry, GstPlugin * plugin)
gst_object_sink (plugin);
GST_UNLOCK (registry);
- GST_DEBUG_OBJECT (registry, "emitting plugin-added for filename %s",
- plugin->filename);
+ GST_DEBUG_OBJECT (registry, "emitting plugin-added for filename \"%s\"",
+ GST_STR_NULL (plugin->filename));
g_signal_emit (G_OBJECT (registry), gst_registry_signals[PLUGIN_ADDED], 0,
plugin);
@@ -701,8 +701,9 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
continue;
}
if (plugin->registered) {
- GST_DEBUG_OBJECT (registry, "plugin already registered from path %s",
- plugin->filename);
+ GST_DEBUG_OBJECT (registry,
+ "plugin already registered from path \"%s\"",
+ GST_STR_NULL (plugin->filename));
g_free (filename);
continue;
}
@@ -768,8 +769,8 @@ _gst_registry_remove_cache_plugins (GstRegistry * registry)
g_next = g->next;
plugin = g->data;
if (plugin->flags & GST_PLUGIN_FLAG_CACHED) {
- GST_DEBUG_OBJECT (registry, "removing cached plugin %s",
- plugin->filename);
+ GST_DEBUG_OBJECT (registry, "removing cached plugin \"%s\"",
+ GST_STR_NULL (plugin->filename));
registry->plugins = g_list_remove (registry->plugins, plugin);
gst_object_unref (plugin);
}
diff --git a/gst/parse/types.h b/gst/parse/types.h
index 3fa3588de..b973e3fcd 100644
--- a/gst/parse/types.h
+++ b/gst/parse/types.h
@@ -4,10 +4,6 @@
#include <glib-object.h>
#include "../gstelement.h"
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
typedef struct {
GstElement *src;
GstElement *sink;
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 32e2d5e62..4fe5efd41 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -1104,7 +1104,7 @@ main (int argc, char *argv[])
GOptionContext *ctx;
GError *err = NULL;
-#ifdef GETTEXT_PACKAGE
+#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index a06ba0759..d89db7254 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -26,7 +26,7 @@
#endif
/* FIXME: hack alert */
-#ifdef _MSC_VER
+#ifdef WIN32
#define DISABLE_FAULT_HANDLER
#endif
@@ -56,11 +56,11 @@ extern volatile gboolean glib_on_error_halt;
static void fault_restore (void);
static void fault_spin (void);
static void sigint_restore (void);
+static gboolean caught_intr = FALSE;
#endif
static gint max_iterations = 0;
static GstElement *pipeline;
-static gboolean caught_intr = FALSE;
static gboolean caught_error = FALSE;
static gboolean tags = FALSE;
static gboolean messages = FALSE;
@@ -518,7 +518,7 @@ main (int argc, char *argv[])
free (malloc (8)); /* -lefence */
-#ifdef GETTEXT_PACKAGE
+#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);