docs/random/ds/0.9-suggested-changes: more comments
authorDavid Schleef <ds@schleef.org>
Thu, 22 Jul 2004 23:29:30 +0000 (23:29 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 22 Jul 2004 23:29:30 +0000 (23:29 +0000)
Original commit message from CVS:
* docs/random/ds/0.9-suggested-changes: more comments
* tools/gst-launch.c: (idle_func): Fix hard-to-translate string.

ChangeLog
docs/random/ds/0.9-suggested-changes
tools/gst-launch.c

index d959e79..2ff1877 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-22  David Schleef  <ds@schleef.org>
+
+       * docs/random/ds/0.9-suggested-changes: more comments
+       * tools/gst-launch.c: (idle_func): Fix hard-to-translate string.
+
 2004-07-22  Benjamin Otte  <otte@gnome.org>
 
        * gst/gstelementfactory.c: (gst_element_register):
index e12ee78..c5eb337 100644 (file)
@@ -69,6 +69,12 @@ API:
    so that you can search a GstPlay for an element implementing the interface
    (right now gstplay has added a gst_play_get_by_interface)
 
+ - make multichannel properties on audio caps manditory
+
+ - talk to vektor about various wierdness with NTSC video (combinations of
+   24 fps pulled down to 60 and straight video, etc) and make sure our
+   video stream descriptions make sense.
+
  - rename GST_TYPE_FIXED_LIST to GST_TYPE_ARRAY
 
 caps:
index 3d06058..82f401d 100644 (file)
@@ -87,11 +87,30 @@ idle_func (gpointer data)
 
   if (!busy || caught_intr || (max_iterations > 0
           && iterations >= max_iterations)) {
+    char *s_iterations;
+    char *s_sum;
+    char *s_ave;
+    char *s_min;
+    char *s_max;
+
     gst_main_quit ();
-    g_print (_("Execution ended after %" G_GUINT64_FORMAT " iterations (sum %"
-            G_GUINT64_FORMAT " ns, average %" G_GUINT64_FORMAT " ns, min %"
-            G_GUINT64_FORMAT " ns, max %" G_GUINT64_FORMAT " ns).\n"),
-        iterations, sum, sum / iterations, min, max);
+
+    /* We write these all to strings first because 
+     * G_GUINT64_FORMAT and gettext mix very poorly */
+    s_iterations = g_strdup_printf ("%" G_GUINT64_FORMAT, iterations);
+    s_sum = g_strdup_printf ("%" G_GUINT64_FORMAT, sum);
+    s_ave = g_strdup_printf ("%" G_GUINT64_FORMAT, sum / iterations);
+    s_min = g_strdup_printf ("%" G_GUINT64_FORMAT, min);
+    s_max = g_strdup_printf ("%" G_GUINT64_FORMAT, max);
+
+    g_print (_("Execution ended after %s iterations (sum %s ns, "
+            "average %s ns, min %s ns, max %s ns).\n"),
+        s_iterations, s_sum, s_ave, s_min, s_max);
+    g_free (s_iterations);
+    g_free (s_sum);
+    g_free (s_ave);
+    g_free (s_min);
+    g_free (s_max);
   }
 
   return busy;