gst/gst.c: move pid declaration to declaration block
authorThomas Vander Stichele <thomas@apestaart.org>
Sat, 10 Jun 2006 11:51:58 +0000 (11:51 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sat, 10 Jun 2006 11:51:58 +0000 (11:51 +0000)
Original commit message from CVS:
* gst/gst.c: (init_post):
move pid declaration to declaration block

ChangeLog
gst/gst.c

index 4888c1a..4b888ce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2006-06-10  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * gst/gst.c: (init_post):
+         move pid declaration to declaration block
+
+2006-06-10  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/gst.c: (init_post):
          use _exit() instead of exit() in our forked child; this ensures
          that none of the registered exit handlers from whatever is using
          GStreamer get executed.  This fixes gnome-mixer-applet failing
index dcebcfb..6a31275 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -603,6 +603,10 @@ init_post (void)
     gboolean changed = FALSE;
     GList *l;
 
+#ifdef HAVE_FORK
+    pid_t pid;
+#endif
+
     for (l = plugin_paths; l != NULL; l = l->next) {
       GST_INFO ("Scanning plugin path: \"%s\"", (gchar *) l->data);
       /* CHECKME: add changed |= here as well? */
@@ -612,10 +616,6 @@ init_post (void)
     g_list_free (plugin_paths);
     plugin_paths = NULL;
 
-#ifdef HAVE_FORK
-    pid_t pid;
-#endif
-
     default_registry = gst_registry_get_default ();
     registry_file = g_strdup (g_getenv ("GST_REGISTRY"));
     if (registry_file == NULL) {