Skip to content

Display and control your Android device

Fix code style

Romain Vimont890fb3e68a5a
diff --git a/app/src/decoder.c b/app/src/decoder.c
index a72a1a7f..9b3cec83 100644
--- a/app/src/decoder.c
+++ b/app/src/decoder.c
@@ -118,7 +118,8 @@ sc_decoder_push(struct sc_decoder *decoder, const AVPacket *packet) {
frame_size.width, frame_size.height, sw, sh);
LOGW("The encoder did not respect the requested size, "
- "please retry with a lower resolution (-m/--max-size)");
+ "please retry with a lower resolution "
+ "(-m/--max-size)");
}
}
diff --git a/app/src/trait/frame_sink.h b/app/src/trait/frame_sink.h
index dc94b1fc..36fabe3a 100644
--- a/app/src/trait/frame_sink.h
+++ b/app/src/trait/frame_sink.h
@@ -19,16 +19,22 @@ struct sc_frame_sink {
struct sc_frame_sink_ops {
/* The codec context is valid until the sink is closed */
- bool (*open)(struct sc_frame_sink *sink, const AVCodecContext *ctx,
- const struct sc_stream_session *session);
- void (*close)(struct sc_frame_sink *sink);
- bool (*push)(struct sc_frame_sink *sink, const AVFrame *frame);
+ bool
+ (*open)(struct sc_frame_sink *sink, const AVCodecContext *ctx,
+ const struct sc_stream_session *session);
+
+ void
+ (*close)(struct sc_frame_sink *sink);
+
+ bool
+ (*push)(struct sc_frame_sink *sink, const AVFrame *frame);
/**
* Optional callback to be notified of a new stream session.
*/
- bool (*push_session)(struct sc_frame_sink *sink,
- const struct sc_stream_session *session);
+ bool
+ (*push_session)(struct sc_frame_sink *sink,
+ const struct sc_stream_session *session);
};
#endif
diff --git a/app/src/trait/packet_sink.h b/app/src/trait/packet_sink.h
index 77a15d3b..7d13d46a 100644
--- a/app/src/trait/packet_sink.h
+++ b/app/src/trait/packet_sink.h
@@ -26,17 +26,23 @@ struct sc_stream_session {
};
struct sc_packet_sink_ops {
- bool (*open)(struct sc_packet_sink *sink, const AVCodec *codec,
- const AVCodecParameters *params,
- const struct sc_stream_session *session);
- void (*close)(struct sc_packet_sink *sink);
- bool (*push)(struct sc_packet_sink *sink, const AVPacket *packet);
+ bool
+ (*open)(struct sc_packet_sink *sink, const AVCodec *codec,
+ const AVCodecParameters *params,
+ const struct sc_stream_session *session);
+
+ void
+ (*close)(struct sc_packet_sink *sink);
+
+ bool
+ (*push)(struct sc_packet_sink *sink, const AVPacket *packet);
/**
* Optional callback to be notified of a new stream session.
*/
- bool (*push_session)(struct sc_packet_sink *sink,
- const struct sc_stream_session *session);
+ bool
+ (*push_session)(struct sc_packet_sink *sink,
+ const struct sc_stream_session *session);
/*/
* Called when the input stream has been disabled at runtime.
@@ -46,7 +52,8 @@ struct sc_packet_sink_ops {
* It is useful to notify the recorder that the requested audio stream has
* finally been disabled because the device could not capture it.
*/
- void (*disable)(struct sc_packet_sink *sink);
+ void
+ (*disable)(struct sc_packet_sink *sink);
};
#endif