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
 	CHANNEL *c = calloc(1, sizeof(CHANNEL));
134
 	CHANNEL *c = calloc(1, sizeof(CHANNEL));
135
 	c->service_id = service_id;
135
 	c->service_id = service_id;
136
 	c->radio = is_radio;
136
 	c->radio = is_radio;
137
-    c->index = channel_index;
137
+	c->index = channel_index;
138
 	c->base_pid = c->index * 32; // The first pid is saved for PMT , channel_index must > 0
138
 	c->base_pid = c->index * 32; // The first pid is saved for PMT , channel_index must > 0
139
 	c->pmt_pid = c->base_pid; // The first pid is saved for PMT
139
 	c->pmt_pid = c->base_pid; // The first pid is saved for PMT
140
 	c->id = strdup(id);
140
 	c->id = strdup(id);

+ 1
- 1
data.h View File

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

+ 2
- 2
input.c View File

191
 		ts_pat_free(&s->last_pat);
191
 		ts_pat_free(&s->last_pat);
192
 		s->last_pat = ts_pat_alloc();
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
 	if (s->pat->initialized) {
195
 	if (s->pat->initialized) {
196
 		// PMT pid is still unknown
196
 		// PMT pid is still unknown
197
 		if (!s->pmt_pid) {
197
 		if (!s->pmt_pid) {
253
 		s->last_pmt = ts_pmt_alloc();
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
 	if (s->pmt->initialized) {
258
 	if (s->pmt->initialized) {
259
 		if (!s->pmt_rewritten || !s->pmt_rewritten->initialized) {
259
 		if (!s->pmt_rewritten || !s->pmt_rewritten->initialized) {

Loading…
Cancel
Save