From 23d19ce876584383d88696df97029331660478f8 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 22 Jul 2004 23:29:30 +0000 Subject: [PATCH] docs/random/ds/0.9-suggested-changes: more comments 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 | 5 +++++ docs/random/ds/0.9-suggested-changes | 6 ++++++ tools/gst-launch.c | 27 +++++++++++++++++++++++---- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d959e79b7b..2ff1877a99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-22 David Schleef + + * 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 * gst/gstelementfactory.c: (gst_element_register): diff --git a/docs/random/ds/0.9-suggested-changes b/docs/random/ds/0.9-suggested-changes index e12ee7889a..c5eb3370d7 100644 --- a/docs/random/ds/0.9-suggested-changes +++ b/docs/random/ds/0.9-suggested-changes @@ -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: diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 3d060584b2..82f401d973 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -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;