Browse Source

Show if decoding is threaded

Georgi Chorbadzhiyski 13 years ago
parent
commit
846b1209c8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tsdecrypt.c

+ 2
- 2
tsdecrypt.c View File

192
 	ts_LOGf("Server pass: %s\n", ts->camd35.pass);
192
 	ts_LOGf("Server pass: %s\n", ts->camd35.pass);
193
 	ts_LOGf("EMM send   : %s\n", ts->emm_send   ? "enabled" : "disabled");
193
 	ts_LOGf("EMM send   : %s\n", ts->emm_send   ? "enabled" : "disabled");
194
 	ts_LOGf("PID filter : %s\n", ts->pid_filter ? "enabled" : "disabled");
194
 	ts_LOGf("PID filter : %s\n", ts->pid_filter ? "enabled" : "disabled");
195
+	ts->threaded = !(ts->input.type == FILE_IO && ts->input.fd != 0);
196
+	ts_LOGf("Decoding   : %s\n", ts->threaded ? "threaded" : "single thread");
195
 }
197
 }
196
 
198
 
197
 int main(int argc, char **argv) {
199
 int main(int argc, char **argv) {
210
 	if (ts.output.type == NET_IO && udp_connect_output(&ts.output) < 1)
212
 	if (ts.output.type == NET_IO && udp_connect_output(&ts.output) < 1)
211
 		goto EXIT;
213
 		goto EXIT;
212
 
214
 
213
-	ts.threaded = !(ts.input.type == FILE_IO && ts.input.fd != 0);
214
-
215
 	if (&ts.threaded) {
215
 	if (&ts.threaded) {
216
 		pthread_create(&ts.decode_thread, NULL, &decode_thread, &ts);
216
 		pthread_create(&ts.decode_thread, NULL, &decode_thread, &ts);
217
 		pthread_create(&ts.write_thread, NULL , &write_thread , &ts);
217
 		pthread_create(&ts.write_thread, NULL , &write_thread , &ts);

Loading…
Cancel
Save