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 05:58:53 +02:00
parent c45b386b54
commit 84512152c1
No known key found for this signature in database
GPG key ID: 902CC06D159744F5
6 changed files with 17 additions and 12 deletions

View file

@ -582,7 +582,8 @@ gst_system_clock_get_internal_time (GstClock * clock)
/* we prefer the highly accurate performance counters on windows */
QueryPerformanceCounter (&now);
return ((now.QuadPart - sysclock->priv->start.QuadPart) * sysclock->priv->ratio);
return ((now.QuadPart -
sysclock->priv->start.QuadPart) * sysclock->priv->ratio);
} else
#endif /* G_OS_WIN32 */
#if !defined HAVE_POSIX_TIMERS || !defined HAVE_CLOCK_GETTIME

View file

@ -52,7 +52,7 @@ int check_major_version = CHECK_MAJOR_VERSION;
int check_minor_version = CHECK_MINOR_VERSION;
int check_micro_version = CHECK_MICRO_VERSION;
const char* current_test_name = NULL;
const char *current_test_name = NULL;
static int non_pass (int val);
static Fixture *fixture_create (SFun fun, int ischecked);
@ -342,7 +342,7 @@ tcase_fn_start (const char *fname, const char *file, int line)
{
send_ctx_info (CK_CTX_TEST);
send_loc_info (file, line);
current_test_name = fname;
}

View file

@ -69,7 +69,7 @@
#define off_t guint64
#endif
#if defined(__BIONIC__) /* Android */
#if defined(__BIONIC__) /* Android */
#if defined(__ANDROID_API__) && __ANDROID_API__ >= 21
#undef fstat
#define fstat fstat64

View file

@ -185,7 +185,7 @@ gint
main (gint argc, gchar * argv[])
{
/* default parameters */
gchar *flavour_str = g_strdup("audio");
gchar *flavour_str = g_strdup ("audio");
gint flavour = FLAVOUR_AUDIO;
gint children = 3;
gint depth = 4;
@ -194,14 +194,18 @@ main (gint argc, gchar * argv[])
GOptionContext *ctx;
GOptionEntry options[] = {
{"children", 'c', 0, G_OPTION_ARG_INT, &children,
"Number of children (branches on each level) (default: 3)", NULL},
"Number of children (branches on each level) (default: 3)", NULL}
,
{"depth", 'd', 0, G_OPTION_ARG_INT, &depth,
"Depth of pipeline hierarchy tree (default: 4)", NULL},
"Depth of pipeline hierarchy tree (default: 4)", NULL}
,
{"flavour", 'f', 0, G_OPTION_ARG_STRING, &flavour_str,
"Flavour (video|audio) controlling the kind of elements used "
"(default: audio)", NULL},
"(default: audio)", NULL}
,
{"loops", 'l', 0, G_OPTION_ARG_INT, &loops,
"How many loops to run (default: 50)", NULL},
"How many loops to run (default: 50)", NULL}
,
{NULL}
};
GError *err = NULL;

View file

@ -1858,7 +1858,7 @@ GST_START_TEST (test_pad_probe_block_add_remove)
thread = g_thread_try_new ("gst-check", (GThreadFunc) push_buffer_async,
pad, NULL);
/* wait for the block */
/* wait for the block */
while (!gst_pad_is_blocking (pad))
g_thread_yield ();

View file

@ -983,10 +983,10 @@ GST_START_TEST (test_url_get_set)
tmp_str = gst_uri_to_string (url);
#if GLIB_CHECK_VERSION(2, 59, 0)
fail_unless_equals_string (tmp_str,
"//example.com/path/to/file/there/segment?key=value&query#fragment");
"//example.com/path/to/file/there/segment?key=value&query#fragment");
#else
fail_unless_equals_string (tmp_str,
"//example.com/path/to/file/there/segment?query&key=value#fragment");
"//example.com/path/to/file/there/segment?query&key=value#fragment");
#endif
g_free (tmp_str);