Browse Source

camd: Make sure decode thread exists when tsdecrypt is killed.

Georgi Chorbadzhiyski 12 years ago
parent
commit
2938f62238
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      camd.c

+ 1
- 0
camd.c View File

@@ -291,6 +291,7 @@ void camd_stop(struct ts *ts) {
291 291
 	struct camd *c = &ts->camd;
292 292
 	ts->camd_stop = 1;
293 293
 	if (c->thread) {
294
+		queue_add(c->req_queue, NULL);
294 295
 		queue_wakeup(c->req_queue);
295 296
 		pthread_join(c->thread, NULL);
296 297
 		queue_free(&c->req_queue);

Loading…
Cancel
Save