videomeasure: Fix format strings and include correct i18n header

This commit is contained in:
Sebastian Dröge 2009-09-10 12:02:21 +02:00
parent bdbd944c52
commit 2a7ee0716f
3 changed files with 7 additions and 5 deletions

View file

@ -21,6 +21,8 @@
#include "config.h" #include "config.h"
#endif #endif
#include <gst/gst-i18n-plugin.h>
#include "gstvideomeasure.h" #include "gstvideomeasure.h"
#include "gstvideomeasure_ssim.h" #include "gstvideomeasure_ssim.h"
#include "gstvideomeasure_collector.h" #include "gstvideomeasure_collector.h"

View file

@ -32,7 +32,7 @@
#include "config.h" #include "config.h"
#endif #endif
#include "../../gst-libs/gst/gst-i18n-plugin.h" #include <gst/gst-i18n-plugin.h>
#include "gstvideomeasure_collector.h" #include "gstvideomeasure_collector.h"
@ -262,7 +262,7 @@ gst_measure_collector_save_csv (GstMeasureCollector * mc)
const gchar *fieldname; const gchar *fieldname;
fieldname = gst_structure_nth_field_name (str, j); fieldname = gst_structure_nth_field_name (str, j);
if (G_LIKELY (j > 0)) if (G_LIKELY (j > 0))
fprintf (file, ";", fieldname); fprintf (file, ";");
fprintf (file, "%s", fieldname); fprintf (file, "%s", fieldname);
} }
@ -273,7 +273,7 @@ gst_measure_collector_save_csv (GstMeasureCollector * mc)
const gchar *fieldname; const gchar *fieldname;
fieldname = gst_structure_nth_field_name (str, j); fieldname = gst_structure_nth_field_name (str, j);
if (G_LIKELY (j > 0)) if (G_LIKELY (j > 0))
fprintf (file, ";", fieldname); fprintf (file, ";");
if (G_LIKELY (g_value_transform (gst_structure_get_value (str, fieldname), if (G_LIKELY (g_value_transform (gst_structure_get_value (str, fieldname),
&tmp))) &tmp)))
fprintf (file, "%s", g_value_get_string (&tmp)); fprintf (file, "%s", g_value_get_string (&tmp));

View file

@ -1216,13 +1216,13 @@ gst_ssim_request_new_pad (GstElement * element, GstPadTemplate * templ,
bad_name: bad_name:
{ {
g_warning ("gstssim: request new pad with bad name %s (must be " g_warning ("gstssim: request new pad with bad name %s (must be "
"'modified\%d')\n", padname); "'modified')\n", padname);
return NULL; return NULL;
} }
unnamed_pad: unnamed_pad:
{ {
g_warning ("gstssim: request new pad without a name (must be " g_warning ("gstssim: request new pad without a name (must be "
"'modified\%d')\n"); "'modified')\n");
return NULL; return NULL;
} }
not_sink: not_sink: