Skip to content

Commit 1a0c7b8

Browse files
Style: adress linter issues
1 parent a6d9c52 commit 1a0c7b8

File tree

7 files changed

+15
-26
lines changed

7 files changed

+15
-26
lines changed

lib/src/st2110/pipeline/st20_pipeline_tx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#include "../../mt_stat.h"
99

1010
static const char* st20p_tx_frame_stat_name[ST20P_TX_FRAME_STATUS_MAX] = {
11-
"free", "ready", "in_converting", "converted", "dropped", "in_user", "in_transmitting",
11+
"free", "ready", "in_converting", "converted",
12+
"dropped", "in_user", "in_transmitting",
1213
};
1314

1415
static const char* st20p_tx_frame_stat_name_short[ST20P_TX_FRAME_STATUS_MAX] = {
@@ -643,7 +644,8 @@ static void tx_st20p_framebuffs_flush(struct st20p_tx_ctx* ctx) {
643644

644645
while (1) {
645646
if (framebuff->stat == ST20P_TX_FRAME_FREE) break;
646-
if (framebuff->stat == ST20P_TX_FRAME_DROPPED) break; /* dropped, effectively free */
647+
if (framebuff->stat == ST20P_TX_FRAME_DROPPED)
648+
break; /* dropped, effectively free */
647649
if (framebuff->stat == ST20P_TX_FRAME_IN_TRANSMITTING) {
648650
/* make sure transport to finish the transmit */
649651
/* WA to use sleep here, todo: add a transport API to query the stat */

lib/src/st2110/pipeline/st20_pipeline_tx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
enum st20p_tx_frame_status {
1212
ST20P_TX_FRAME_FREE = 0,
1313
ST20P_TX_FRAME_READY,
14-
ST20P_TX_FRAME_IN_CONVERTING, /* for converting */
14+
ST20P_TX_FRAME_IN_CONVERTING, /* for converting */
1515
ST20P_TX_FRAME_CONVERTED,
16-
ST20P_TX_FRAME_DROPPED, /* converted but arrived too late; recycled in next_frame */
17-
ST20P_TX_FRAME_IN_USER, /* in user */
16+
ST20P_TX_FRAME_DROPPED, /* converted but arrived too late; recycled in next_frame */
17+
ST20P_TX_FRAME_IN_USER, /* in user */
1818
ST20P_TX_FRAME_IN_TRANSMITTING, /* for transport */
1919
ST20P_TX_FRAME_STATUS_MAX,
2020
};

lib/src/st2110/pipeline/st22_pipeline_tx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ enum st22p_tx_frame_status {
1212
ST22P_TX_FRAME_FREE = 0,
1313
ST22P_TX_FRAME_IN_USER,
1414
ST22P_TX_FRAME_READY,
15-
ST22P_TX_FRAME_IN_ENCODING, /* for encoding */
15+
ST22P_TX_FRAME_IN_ENCODING, /* for encoding */
1616
ST22P_TX_FRAME_ENCODED,
17-
ST22P_TX_FRAME_DROPPED, /* encoded but arrived too late; recycled in next_frame */
17+
ST22P_TX_FRAME_DROPPED, /* encoded but arrived too late; recycled in next_frame */
1818
ST22P_TX_FRAME_IN_TRANSMITTING, /* for transport */
1919
ST22P_TX_FRAME_STATUS_MAX,
2020
};

lib/src/st2110/pipeline/st30_pipeline_tx.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
#include "../../mt_stat.h"
99

1010
static const char* st30p_tx_frame_stat_name[ST30P_TX_FRAME_STATUS_MAX] = {
11-
"free",
12-
"in_user",
13-
"ready",
14-
"dropped",
15-
"in_transmitting",
11+
"free", "in_user", "ready", "dropped", "in_transmitting",
1612
};
1713

1814
static const char* st30p_tx_frame_stat_name_short[ST30P_TX_FRAME_STATUS_MAX] = {

lib/src/st2110/pipeline/st40_pipeline_rx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ static int rx_st40p_rtp_ready(void* priv) {
327327
if (!report_frame || !report_info) continue;
328328
dbg("%s(%d), frame %u succ, meta_num %u\n", __func__, ctx->idx, report_frame->idx,
329329
report_info->meta_num);
330-
report_info->status = report_info->seq_discont ? ST_FRAME_STATUS_CORRUPTED
331-
: ST_FRAME_STATUS_COMPLETE;
330+
report_info->status =
331+
report_info->seq_discont ? ST_FRAME_STATUS_CORRUPTED : ST_FRAME_STATUS_COMPLETE;
332332
/* notify app to a ready frame */
333333
rx_st40p_notify_frame_available(ctx);
334334
MT_USDT_ST40P_RX_FRAME_AVAILABLE(ctx->idx, report_frame->idx,

lib/src/st2110/pipeline/st40_pipeline_tx.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,11 @@
88
#include "../../mt_stat.h"
99

1010
static const char* st40p_tx_frame_stat_name[ST40P_TX_FRAME_STATUS_MAX] = {
11-
"free",
12-
"in_user",
13-
"ready",
14-
"dropped",
15-
"in_transmitting",
11+
"free", "in_user", "ready", "dropped", "in_transmitting",
1612
};
1713

1814
static const char* st40p_tx_frame_stat_name_short[ST40P_TX_FRAME_STATUS_MAX] = {
19-
"F",
20-
"U",
21-
"R",
22-
"D",
23-
"T",
15+
"F", "U", "R", "D", "T",
2416
};
2517

2618
static const char* tx_st40p_stat_name(enum st40p_tx_frame_status stat) {

lib/src/st2110/st_tx_audio_session.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ static int tx_audio_session_sync_pacing(struct mtl_main_impl* impl,
322322
}
323323

324324
if (epochs > next_epochs) {
325-
ST_SESSION_STAT_ADD(s, port_user_stats.common, stat_epoch_drop,
326-
-to_epoch / pkt_time);
325+
ST_SESSION_STAT_ADD(s, port_user_stats.common, stat_epoch_drop, -to_epoch / pkt_time);
327326

328327
if (s->ops.notify_frame_late) {
329328
s->ops.notify_frame_late(s->ops.priv, -to_epoch / pkt_time);

0 commit comments

Comments
 (0)