fix stopping of media processor threads (thats probably the reason ctrl-c did not work sometimes)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1649 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 17 years ago
parent 1c495b62a9
commit e6a8e7a82b

@ -179,6 +179,7 @@ void AmMediaProcessor::stop() {
bool threads_stopped = true;
do {
usleep(10000);
threads_stopped = true;
for (unsigned int i=0;i<num_threads;i++) {
if((threads[i] != NULL) &&(!threads[i]->is_stopped())) {
threads_stopped = false;

Loading…
Cancel
Save