tools: fix compiler warning
[platform/upstream/gstreamer.git] / tools / tools.h
index a4e3371..93ac542 100644 (file)
@@ -44,12 +44,6 @@ static gboolean __gst_tools_version = FALSE;
 static void
 gst_tools_print_version (const gchar * tool)
 {
-  gchar *s;
-
-  s = g_strdup_printf ("%s-%u.%u", tool, GST_VERSION_MAJOR, GST_VERSION_MINOR);
-  g_set_prgname (s);
-  g_free (s);
-
   if (__gst_tools_version) {
     gchar *version_str;
 
@@ -63,4 +57,14 @@ gst_tools_print_version (const gchar * tool)
   }
 }
 
+static void
+gst_tools_set_prgname (const gchar * tool)
+{
+  gchar *s;
+
+  s = g_strdup_printf ("%s-%u.%u", tool, GST_VERSION_MAJOR, GST_VERSION_MINOR);
+  g_set_prgname (s);
+  g_free (s);
+}
+
 #endif /* __GST_TOOLS_H__ */