Showing the changes to tests/api/api-threadmessage-test.c (1 of 5 files). Show all
Unified · Split
| @@ -130,7 +130,9 @@ static void *receiver_thread(void *arg) · 129 unmodified lines | |||
| 130 | 130 | ||
| 131 | for (i = 0; i < rd->workload; i++) { | 131 | for (i = 0; i < rd->workload; i++) { |
| 132 | if (rand() % rd->workload < rd->workload / 10) { | 132 | if (rand() % rd->workload < rd->workload / 10) { |
| 133 | av_log(NULL, AV_LOG_INFO, "receiver #%d: flushing the queue\n", rd->id); | 133 | av_log(NULL, AV_LOG_INFO, "receiver #%d: flushing the queue, " |
| 134 | "discarding %d message(s)\n", rd->id, | ||
| 135 | av_thread_message_queue_nb_elems(rd->queue)); | ||
| 134 | av_thread_message_flush(rd->queue); | 136 | av_thread_message_flush(rd->queue); |
| 135 | } else { | 137 | } else { |
| 136 | struct message msg; | 138 | struct message msg; |