Run gst-indent through the files

This is required before we enabled an indent test in the CI.

https://gitlab.freedesktop.org/gstreamer/gstreamer-project/issues/33
This commit is contained in:
Jordan Petridis 2018-11-28 12:09:28 +02:00
parent 9e8d215f90
commit 61074f6d8d
No known key found for this signature in database
GPG key ID: 902CC06D159744F5
2 changed files with 36 additions and 39 deletions

View file

@ -63,8 +63,9 @@ appsrc_configuration (GstDiscoverer *dc, GstElement *source, gpointer data)
GstFlowReturn ret; GstFlowReturn ret;
/* Create buffer from fuzztesting_data which shouldn't be freed */ /* Create buffer from fuzztesting_data which shouldn't be freed */
buf = gst_buffer_new_wrapped_full (0, (gpointer) fuzztesting_data, fuzztesting_size, buf =
0, fuzztesting_size, NULL, NULL); gst_buffer_new_wrapped_full (0, (gpointer) fuzztesting_data,
fuzztesting_size, 0, fuzztesting_size, NULL, NULL);
g_object_set (G_OBJECT (source), "size", fuzztesting_size, NULL); g_object_set (G_OBJECT (source), "size", fuzztesting_size, NULL);
g_signal_emit_by_name (G_OBJECT (source), "push-buffer", buf, &ret); g_signal_emit_by_name (G_OBJECT (source), "push-buffer", buf, &ret);
gst_buffer_unref (buf); gst_buffer_unref (buf);
@ -72,9 +73,7 @@ appsrc_configuration (GstDiscoverer *dc, GstElement *source, gpointer data)
static void static void
custom_logger (const gchar * log_domain, custom_logger (const gchar * log_domain,
GLogLevelFlags log_level, GLogLevelFlags log_level, const gchar * message, gpointer unused_data)
const gchar *message,
gpointer unused_data)
{ {
if (log_level & G_LOG_LEVEL_CRITICAL) { if (log_level & G_LOG_LEVEL_CRITICAL) {
g_printerr ("CRITICAL ERROR : %s\n", message); g_printerr ("CRITICAL ERROR : %s\n", message);
@ -84,7 +83,8 @@ custom_logger (const gchar *log_domain,
} }
} }
int LLVMFuzzerTestOneInput(const guint8 *data, size_t size) int
LLVMFuzzerTestOneInput (const guint8 * data, size_t size)
{ {
GError *err = NULL; GError *err = NULL;
GstDiscoverer *dc; GstDiscoverer *dc;
@ -135,4 +135,3 @@ int LLVMFuzzerTestOneInput(const guint8 *data, size_t size)
return 0; return 0;
} }

View file

@ -45,9 +45,7 @@ GST_PLUGIN_STATIC_DECLARE (app);
**/ **/
static void static void
custom_logger (const gchar * log_domain, custom_logger (const gchar * log_domain,
GLogLevelFlags log_level, GLogLevelFlags log_level, const gchar * message, gpointer unused_data)
const gchar *message,
gpointer unused_data)
{ {
if (log_level & G_LOG_LEVEL_CRITICAL) { if (log_level & G_LOG_LEVEL_CRITICAL) {
g_printerr ("CRITICAL ERROR : %s\n", message); g_printerr ("CRITICAL ERROR : %s\n", message);