Skip to content

Commit ed186fa

Browse files
committed
style: apply clang-format
1 parent cd8183b commit ed186fa

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

src/egl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC)(
429429
const EGLAttrib *attrib_list
430430
);
431431
typedef EGLBoolean(EGLAPIENTRYP PFNEGLWAITSYNCPROC)(EGLDisplay dpy, EGLSync sync, EGLint flags);
432-
// clang-format on
432+
// clang-format on
433433

434434
#endif
435435

src/plugins/audioplayers/plugin.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ void audioplayers_plugin_deinit(struct flutterpi *flutterpi, void *userdata) {
192192
static struct audio_player *audioplayers_linux_plugin_get_player(char *player_id, char *mode) {
193193
struct audio_player_entry *entry;
194194
struct audio_player *player;
195-
195+
196196
(void) mode;
197-
197+
198198
list_for_each_entry_safe(struct audio_player_entry, entry, &plugin.players, entry) {
199199
if (audio_player_is_id(entry->player, player_id)) {
200200
return entry->player;
@@ -210,7 +210,7 @@ static struct audio_player *audioplayers_linux_plugin_get_player(char *player_id
210210
return NULL;
211211
}
212212

213-
entry->entry = (struct list_head) {NULL, NULL};
213+
entry->entry = (struct list_head){ NULL, NULL };
214214
entry->player = player;
215215

216216
list_add(&entry->entry, &plugin.players);

src/plugins/gstreamer_video_player/frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ struct video_frame *frame_new(struct frame_interface *interface, GstSample *samp
10371037
///
10381038
/// Make context current in GST_STREAM_STATUS_TYPE_ENTER message, clear it
10391039
/// in GST_STREAM_STATUS_TYPE_LEAVE message.
1040-
///
1040+
///
10411041
/// See https://gstreamer.freedesktop.org/documentation/additional/design/stream-status.html
10421042
///
10431043
/// Alternatively, don't unconditionally create & make current an EGL

src/plugins/gstreamer_video_player/player.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,10 @@ static void update_buffering_state(struct gstplayer *player) {
304304
notifier_notify(&player->buffering_state_notifier, state);
305305
return;
306306

307-
308-
fail_free_state:
307+
fail_free_state:
309308
free(state);
310309

311-
fail_unref_query:
310+
fail_unref_query:
312311
gst_query_unref(query);
313312
}
314313

src/plugins/gstreamer_video_player/plugin.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int
131131
get_texture_id_from_map_arg(struct std_value *arg, int64_t *texture_id_out, FlutterPlatformMessageResponseHandle *responsehandle) {
132132
struct std_value *id;
133133
int ok;
134-
134+
135135
if (!STDVALUE_IS_MAP(*arg)) {
136136
ok = platch_respond_illegal_arg_ext_pigeon(responsehandle, "Expected `arg` to be a Map, but was: ", arg);
137137
if (ok != 0)
@@ -1191,20 +1191,20 @@ static int on_create_v2(const struct raw_std_value *arg, FlutterPlatformMessageR
11911191
// Create our actual player (this doesn't initialize it)
11921192
if (asset != NULL) {
11931193
player = gstplayer_new_from_asset(flutterpi, asset, package_name, NULL);
1194-
1194+
11951195
// gstplayer_new_from_network will construct a file:// URI out of the
11961196
// asset path internally.
11971197
free(asset);
11981198
asset = NULL;
11991199
} else if (uri != NULL) {
12001200
player = gstplayer_new_from_network(flutterpi, uri, format_hint, NULL);
1201-
1201+
12021202
// gstplayer_new_from_network will dup the uri internally.
12031203
free(uri);
12041204
uri = NULL;
12051205
} else if (pipeline != NULL) {
12061206
player = gstplayer_new_from_pipeline(flutterpi, pipeline, NULL);
1207-
1207+
12081208
// gstplayer_new_from_network will dup the pipeline internally.
12091209
free(pipeline);
12101210
pipeline = NULL;

src/plugins/services.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#include <stdio.h>
55
#include <string.h>
66

7-
#define ORIENTATION_FROM_STRING(str) \
7+
#define ORIENTATION_FROM_STRING(str) \
88
(streq(str, "DeviceOrientation.portraitUp") ? kPortraitUp : \
99
streq(str, "DeviceOrientation.landscapeLeft") ? kLandscapeLeft : \
1010
streq(str, "DeviceOrientation.portraitDown") ? kPortraitDown : \
1111
streq(str, "DeviceOrientation.landscapeRight") ? kLandscapeRight : \
12-
-1)
12+
-1)
1313

1414
#define FLUTTER_NAVIGATION_CHANNEL "flutter/navigation"
1515
#define FLUTTER_ISOLATE_CHANNEL "flutter/isolate"

0 commit comments

Comments
 (0)