Browse Source

don't expand tab(to 4 spaces)

wing_pn 7 years ago
parent
commit
935ca76c0a
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      data.c
  2. 1
    1
      data.h
  3. 2
    2
      input.c

+ 1
- 1
data.c View File

@@ -134,7 +134,7 @@ CHANNEL *channel_new(int service_id, int is_radio, const char *id, const char *n
134 134
 	CHANNEL *c = calloc(1, sizeof(CHANNEL));
135 135
 	c->service_id = service_id;
136 136
 	c->radio = is_radio;
137
-    c->index = channel_index;
137
+	c->index = channel_index;
138 138
 	c->base_pid = c->index * 32; // The first pid is saved for PMT , channel_index must > 0
139 139
 	c->pmt_pid = c->base_pid; // The first pid is saved for PMT
140 140
 	c->id = strdup(id);

+ 1
- 1
data.h View File

@@ -59,7 +59,7 @@ typedef struct {
59 59
 
60 60
 typedef struct {
61 61
 	/* Config */
62
-    int         index;
62
+	int			index;
63 63
 	int			base_pid;
64 64
 	int			service_id;
65 65
 	int			pmt_pid;

+ 2
- 2
input.c View File

@@ -191,7 +191,7 @@ int process_pat(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
191 191
 		ts_pat_free(&s->last_pat);
192 192
 		s->last_pat = ts_pat_alloc();
193 193
 	}
194
-    s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);
194
+	s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);
195 195
 	if (s->pat->initialized) {
196 196
 		// PMT pid is still unknown
197 197
 		if (!s->pmt_pid) {
@@ -253,7 +253,7 @@ int process_pmt(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
253 253
 		s->last_pmt = ts_pmt_alloc();
254 254
 	}
255 255
 
256
-    s->last_pmt = ts_pmt_push_packet(s->last_pmt, ts_packet);
256
+	s->last_pmt = ts_pmt_push_packet(s->last_pmt, ts_packet);
257 257
 
258 258
 	if (s->pmt->initialized) {
259 259
 		if (!s->pmt_rewritten || !s->pmt_rewritten->initialized) {

Loading…
Cancel
Save