mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
gstreamer: re-indent with GNU indent 2.2.12
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4182>
This commit is contained in:
parent
fba06cfc76
commit
574e6b7994
22 changed files with 99 additions and 93 deletions
|
@ -349,7 +349,7 @@ _add_properties (GString * json, GString * other_types,
|
|||
continue;
|
||||
|
||||
g_value_init (&value, spec->value_type);
|
||||
if (object && ! !(spec->flags & G_PARAM_READABLE) &&
|
||||
if (object && !!(spec->flags & G_PARAM_READABLE) &&
|
||||
!(spec->flags & GST_PARAM_DOC_SHOW_DEFAULT)) {
|
||||
g_object_get_property (G_OBJECT (object), spec->name, &value);
|
||||
} else {
|
||||
|
|
|
@ -56,7 +56,7 @@ load_real_signal (gpointer data)
|
|||
}
|
||||
|
||||
__sighandler_t bsd_signal (int signum, __sighandler_t handler)
|
||||
__attribute__ ((weak));
|
||||
__attribute__((weak));
|
||||
__sighandler_t
|
||||
bsd_signal (int signum, __sighandler_t handler)
|
||||
{
|
||||
|
|
|
@ -1758,11 +1758,11 @@ gst_clock_set_synced (GstClock * clock, gboolean synced)
|
|||
GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC));
|
||||
|
||||
GST_OBJECT_LOCK (clock);
|
||||
if (clock->priv->synced != ! !synced) {
|
||||
clock->priv->synced = ! !synced;
|
||||
if (clock->priv->synced != !!synced) {
|
||||
clock->priv->synced = !!synced;
|
||||
g_cond_signal (&clock->priv->sync_cond);
|
||||
GST_OBJECT_UNLOCK (clock);
|
||||
g_signal_emit (clock, gst_clock_signals[SIGNAL_SYNCED], 0, ! !synced);
|
||||
g_signal_emit (clock, gst_clock_signals[SIGNAL_SYNCED], 0, !!synced);
|
||||
} else {
|
||||
GST_OBJECT_UNLOCK (clock);
|
||||
}
|
||||
|
|
|
@ -491,5 +491,5 @@ gboolean
|
|||
gst_control_binding_is_disabled (GstControlBinding * binding)
|
||||
{
|
||||
g_return_val_if_fail (GST_IS_CONTROL_BINDING (binding), TRUE);
|
||||
return ! !binding->disabled;
|
||||
return !!binding->disabled;
|
||||
}
|
||||
|
|
|
@ -1702,7 +1702,7 @@ gst_plugin_ext_dep_scan_dir_and_match_names (GstPlugin * plugin,
|
|||
GDir *dir;
|
||||
guint hash = 0;
|
||||
|
||||
recurse_dirs = ! !(flags & GST_PLUGIN_DEPENDENCY_FLAG_RECURSE);
|
||||
recurse_dirs = !!(flags & GST_PLUGIN_DEPENDENCY_FLAG_RECURSE);
|
||||
|
||||
dir = g_dir_open (path, 0, &err);
|
||||
if (dir == NULL) {
|
||||
|
@ -1764,7 +1764,7 @@ gst_plugin_ext_dep_scan_path_with_filenames (GstPlugin * plugin,
|
|||
if (filenames == NULL || *filenames == NULL)
|
||||
filenames = empty_filenames;
|
||||
|
||||
recurse_into_dirs = ! !(flags & GST_PLUGIN_DEPENDENCY_FLAG_RECURSE);
|
||||
recurse_into_dirs = !!(flags & GST_PLUGIN_DEPENDENCY_FLAG_RECURSE);
|
||||
|
||||
if ((flags & GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX) ||
|
||||
(flags & GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_PREFIX))
|
||||
|
|
|
@ -162,7 +162,7 @@ gst_task_win32_load_library (void)
|
|||
}
|
||||
#endif
|
||||
|
||||
return ! !SetThreadDescriptionFunc;
|
||||
return !!SetThreadDescriptionFunc;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -4687,7 +4687,7 @@ gboolean
|
|||
gst_type_is_plugin_api (GType type, GstPluginAPIFlags * flags)
|
||||
{
|
||||
gboolean ret =
|
||||
! !GPOINTER_TO_INT (g_type_get_qdata (type, GST_QUARK (PLUGIN_API)));
|
||||
!!GPOINTER_TO_INT (g_type_get_qdata (type, GST_QUARK (PLUGIN_API)));
|
||||
|
||||
if (ret && flags) {
|
||||
*flags =
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <stdarg.h>
|
||||
|
||||
char *
|
||||
asnprintf (char *resultbuf, size_t * lengthp, const char *format, ...)
|
||||
asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
char *result;
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
# ifndef local_wcslen_defined
|
||||
# define local_wcslen_defined 1
|
||||
static size_t
|
||||
local_wcslen (const wchar_t * s)
|
||||
local_wcslen (const wchar_t *s)
|
||||
{
|
||||
const wchar_t *ptr;
|
||||
|
||||
|
@ -261,7 +261,7 @@ printf_postprocess_args (char_directives * directives, arguments * arguments)
|
|||
}
|
||||
|
||||
char *
|
||||
vasnprintf (char *resultbuf, size_t * lengthp, const char *format, va_list args)
|
||||
vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
|
||||
{
|
||||
char_directives d;
|
||||
arguments a;
|
||||
|
|
|
@ -1224,7 +1224,7 @@ gst_collect_pads_set_waiting (GstCollectPads * pads, GstCollectData * data,
|
|||
/* Do something only on a change and if not locked */
|
||||
if (!GST_COLLECT_PADS_STATE_IS_SET (data, GST_COLLECT_PADS_STATE_LOCKED) &&
|
||||
(GST_COLLECT_PADS_STATE_IS_SET (data, GST_COLLECT_PADS_STATE_WAITING) !=
|
||||
! !waiting)) {
|
||||
!!waiting)) {
|
||||
/* Set waiting state for this pad */
|
||||
if (waiting)
|
||||
GST_COLLECT_PADS_STATE_SET (data, GST_COLLECT_PADS_STATE_WAITING);
|
||||
|
|
|
@ -386,7 +386,8 @@ tcase_run_tfun_nofork (SRunner * sr, TCase * tc, TF * tfun, int i)
|
|||
{
|
||||
TestResult *tr;
|
||||
struct timespec ts_start = { 0, 0 }, ts_end = {
|
||||
0, 0};
|
||||
0, 0
|
||||
};
|
||||
|
||||
tr = tcase_run_checked_setup (sr, tc);
|
||||
if (tr == NULL) {
|
||||
|
@ -448,7 +449,8 @@ tcase_run_tfun_fork (SRunner * sr, TCase * tc, TF * tfun, int i)
|
|||
pid_t pid;
|
||||
int status = 0;
|
||||
struct timespec ts_start = { 0, 0 }, ts_end = {
|
||||
0, 0};
|
||||
0, 0
|
||||
};
|
||||
|
||||
timer_t timerid;
|
||||
struct itimerspec timer_spec;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#define DELIMITER '\n'
|
||||
|
||||
ssize_t
|
||||
getline (char **lineptr, size_t * n, FILE * stream)
|
||||
getline (char **lineptr, size_t *n, FILE * stream)
|
||||
{
|
||||
ssize_t written = 0;
|
||||
int character;
|
||||
|
|
|
@ -615,7 +615,8 @@ static struct
|
|||
(GstControlSourceGetValueArray) interpolate_cubic_get_value_array}, {
|
||||
(GstControlSourceGetValue) interpolate_cubic_monotonic_get,
|
||||
(GstControlSourceGetValueArray)
|
||||
interpolate_cubic_monotonic_get_value_array}};
|
||||
interpolate_cubic_monotonic_get_value_array}
|
||||
};
|
||||
|
||||
static const guint num_interpolation_modes = G_N_ELEMENTS (interpolation_modes);
|
||||
|
||||
|
|
|
@ -1542,7 +1542,7 @@ gst_input_selector_set_property (GObject * object, guint prop_id,
|
|||
|
||||
GST_INPUT_SELECTOR_LOCK (sel);
|
||||
|
||||
sel->active_sinkpad_from_user = ! !pad;
|
||||
sel->active_sinkpad_from_user = !!pad;
|
||||
#if DEBUG_CACHED_BUFFERS
|
||||
gst_input_selector_debug_cached_buffers (sel);
|
||||
#endif
|
||||
|
|
|
@ -3741,7 +3741,7 @@ gst_queue2_src_activate_pull (GstPad * pad, GstObject * parent, gboolean active)
|
|||
result = gst_queue2_open_temp_location_file (queue);
|
||||
} else if (!queue->ring_buffer) {
|
||||
queue->ring_buffer = g_malloc (queue->ring_buffer_max_size);
|
||||
result = ! !queue->ring_buffer;
|
||||
result = !!queue->ring_buffer;
|
||||
} else {
|
||||
result = TRUE;
|
||||
}
|
||||
|
|
|
@ -490,7 +490,7 @@ gst_type_find_element_seek (GstTypeFindElement * typefind, GstEvent * event)
|
|||
gst_segment_do_seek (&seeksegment, rate, format, flags,
|
||||
start_type, start, stop_type, stop, NULL);
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
|
||||
GST_DEBUG_OBJECT (typefind, "New segment %" GST_SEGMENT_FORMAT, &seeksegment);
|
||||
|
||||
|
|
|
@ -339,7 +339,8 @@ GST_START_TEST (test_internal_links)
|
|||
GstIteratorResult res;
|
||||
GValue val1 = { 0, }
|
||||
, val2 = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
tee = gst_check_setup_element ("tee");
|
||||
|
||||
|
|
|
@ -178,7 +178,6 @@ GST_DEVICE_PROVIDER_REGISTER_DECLARE (testdeviceprovider);
|
|||
|
||||
GST_DEVICE_PROVIDER_REGISTER_DEFINE (testdeviceprovider, "testdeviceprovider",
|
||||
1, gst_test_device_provider_get_type ())
|
||||
|
||||
static void register_test_device_provider (void)
|
||||
{
|
||||
gst_device_provider_register (NULL, "testdeviceprovider", 1,
|
||||
|
|
|
@ -2806,7 +2806,8 @@ GST_START_TEST (test_compare_caps)
|
|||
{
|
||||
GValue value = { 0 }
|
||||
, value2 = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
g_value_init (&value, GST_TYPE_CAPS);
|
||||
g_value_init (&value2, GST_TYPE_CAPS);
|
||||
|
@ -3294,7 +3295,8 @@ GST_START_TEST (test_stepped_int_range_ops)
|
|||
"[10, 20, 5]", "union", "5", "[5, 20, 5]"}, {
|
||||
"[10, 20, 5]", "union", "12", NULL}, {
|
||||
"[10, 20, 5]", "union", "30", NULL}, {
|
||||
"[10, 20, 5]", "union", "25", "[10, 25, 5]"},};
|
||||
"[10, 20, 5]", "union", "25", "[10, 25, 5]"},
|
||||
};
|
||||
|
||||
for (n = 0; n < G_N_ELEMENTS (ranges); ++n) {
|
||||
gchar *end = NULL;
|
||||
|
@ -3398,7 +3400,8 @@ GST_START_TEST (test_structure_single_ops)
|
|||
} single_struct[] = {
|
||||
{
|
||||
"foo,bar=(int)1", TRUE, TRUE}, {
|
||||
"foo,bar=(int)[1,2]", FALSE, TRUE},};
|
||||
"foo,bar=(int)[1,2]", FALSE, TRUE},
|
||||
};
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (single_struct); i++) {
|
||||
|
|
|
@ -455,7 +455,7 @@ print_object_properties_info (GObject * obj, GObjectClass * obj_class,
|
|||
|
||||
first_flag = TRUE;
|
||||
n_print ("%sflags%s: ", PROP_ATTR_NAME_COLOR, RESET_COLOR);
|
||||
readable = ! !(param->flags & G_PARAM_READABLE);
|
||||
readable = !!(param->flags & G_PARAM_READABLE);
|
||||
if (readable && obj != NULL) {
|
||||
g_object_get_property (obj, param->name, &value);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue