mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
videomeasure: Fix format strings and include correct i18n header
This commit is contained in:
parent
bdbd944c52
commit
2a7ee0716f
3 changed files with 7 additions and 5 deletions
|
@ -21,6 +21,8 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst-i18n-plugin.h>
|
||||
|
||||
#include "gstvideomeasure.h"
|
||||
#include "gstvideomeasure_ssim.h"
|
||||
#include "gstvideomeasure_collector.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "../../gst-libs/gst/gst-i18n-plugin.h"
|
||||
#include <gst/gst-i18n-plugin.h>
|
||||
|
||||
#include "gstvideomeasure_collector.h"
|
||||
|
||||
|
@ -262,7 +262,7 @@ gst_measure_collector_save_csv (GstMeasureCollector * mc)
|
|||
const gchar *fieldname;
|
||||
fieldname = gst_structure_nth_field_name (str, j);
|
||||
if (G_LIKELY (j > 0))
|
||||
fprintf (file, ";", fieldname);
|
||||
fprintf (file, ";");
|
||||
fprintf (file, "%s", fieldname);
|
||||
}
|
||||
|
||||
|
@ -273,7 +273,7 @@ gst_measure_collector_save_csv (GstMeasureCollector * mc)
|
|||
const gchar *fieldname;
|
||||
fieldname = gst_structure_nth_field_name (str, j);
|
||||
if (G_LIKELY (j > 0))
|
||||
fprintf (file, ";", fieldname);
|
||||
fprintf (file, ";");
|
||||
if (G_LIKELY (g_value_transform (gst_structure_get_value (str, fieldname),
|
||||
&tmp)))
|
||||
fprintf (file, "%s", g_value_get_string (&tmp));
|
||||
|
|
|
@ -1216,13 +1216,13 @@ gst_ssim_request_new_pad (GstElement * element, GstPadTemplate * templ,
|
|||
bad_name:
|
||||
{
|
||||
g_warning ("gstssim: request new pad with bad name %s (must be "
|
||||
"'modified\%d')\n", padname);
|
||||
"'modified')\n", padname);
|
||||
return NULL;
|
||||
}
|
||||
unnamed_pad:
|
||||
{
|
||||
g_warning ("gstssim: request new pad without a name (must be "
|
||||
"'modified\%d')\n");
|
||||
"'modified')\n");
|
||||
return NULL;
|
||||
}
|
||||
not_sink:
|
||||
|
|
Loading…
Reference in a new issue