mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-14 18:25:22 +00:00
build: fprintf, sprintf, sscanf need stdio.h
This commit is contained in:
parent
461c1727a2
commit
b7b8b7f407
8 changed files with 15 additions and 9 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "cogutils.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
#include <directfb.h>
|
||||
#include <stdio.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
static IDirectFB *dfb = NULL;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gstmms.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
|
|
@ -83,6 +83,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpegtsmux.h"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "gstvideomeasure_collector.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
|
@ -144,14 +145,12 @@ gst_measure_collector_post_message (GstMeasureCollector * mc)
|
|||
const GValue *v;
|
||||
GstStructure *str =
|
||||
(GstStructure *) g_ptr_array_index (mc->measurements, i);
|
||||
if (str)
|
||||
{
|
||||
if (str) {
|
||||
v = gst_structure_get_value (str, "mean");
|
||||
dresult += g_value_get_float (v);
|
||||
}
|
||||
else
|
||||
{
|
||||
GST_WARNING_OBJECT (mc, "No measurement info for frame %" G_GUINT64_FORMAT, i);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (mc,
|
||||
"No measurement info for frame %" G_GUINT64_FORMAT, i);
|
||||
mlen--;
|
||||
}
|
||||
}
|
||||
|
@ -285,8 +284,8 @@ gst_measure_collector_save_csv (GstMeasureCollector * mc)
|
|||
fieldname = gst_structure_nth_field_name (str, j);
|
||||
if (G_LIKELY (j > 0))
|
||||
fprintf (file, ";");
|
||||
if (G_LIKELY (g_value_transform (gst_structure_get_value (str, fieldname),
|
||||
&tmp)))
|
||||
if (G_LIKELY (g_value_transform (gst_structure_get_value (str,
|
||||
fieldname), &tmp)))
|
||||
fprintf (file, "%s", g_value_get_string (&tmp));
|
||||
else
|
||||
fprintf (file, "<untranslatable>");
|
||||
|
@ -399,7 +398,7 @@ gst_measure_collector_finalize (GObject * object)
|
|||
GstMeasureCollector *mc = GST_MEASURE_COLLECTOR (object);
|
||||
|
||||
for (i = 0; i < mc->measurements->len; i++) {
|
||||
if (g_ptr_array_index (mc->measurements,i) != NULL)
|
||||
if (g_ptr_array_index (mc->measurements, i) != NULL)
|
||||
gst_structure_free ((GstStructure *) g_ptr_array_index (mc->measurements,
|
||||
i));
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include <fcntl.h>
|
||||
#include <error.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "_stdint.h"
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#ifdef SAVE_SNAPSHOT
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
|
|
Loading…
Reference in a new issue