From: David Schleef Date: Thu, 22 Jul 2004 23:29:30 +0000 (+0000) Subject: docs/random/ds/0.9-suggested-changes: more comments X-Git-Tag: RELEASE-0_8_6~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23d19ce876584383d88696df97029331660478f8;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ChangeLog b/ChangeLog index d959e79..2ff1877 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 e12ee78..c5eb337 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 3d06058..82f401d 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;