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,6 +192,8 @@ static void parse_options(struct ts *ts, int argc, char **argv) {
192 192
 	ts_LOGf("Server pass: %s\n", ts->camd35.pass);
193 193
 	ts_LOGf("EMM send   : %s\n", ts->emm_send   ? "enabled" : "disabled");
194 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 199
 int main(int argc, char **argv) {
@@ -210,8 +212,6 @@ int main(int argc, char **argv) {
210 212
 	if (ts.output.type == NET_IO && udp_connect_output(&ts.output) < 1)
211 213
 		goto EXIT;
212 214
 
213
-	ts.threaded = !(ts.input.type == FILE_IO && ts.input.fd != 0);
214
-
215 215
 	if (&ts.threaded) {
216 216
 		pthread_create(&ts.decode_thread, NULL, &decode_thread, &ts);
217 217
 		pthread_create(&ts.write_thread, NULL , &write_thread , &ts);

Loading…
Cancel
Save