From e6a8e7a82b1eba78891124ef4484af23a28bf536 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 3 Mar 2010 21:26:25 +0000 Subject: [PATCH] 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 --- core/AmMediaProcessor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/AmMediaProcessor.cpp b/core/AmMediaProcessor.cpp index 713d6062..c59b930e 100644 --- a/core/AmMediaProcessor.cpp +++ b/core/AmMediaProcessor.cpp @@ -179,6 +179,7 @@ void AmMediaProcessor::stop() { bool threads_stopped = true; do { usleep(10000); + threads_stopped = true; for (unsigned int i=0;iis_stopped())) { threads_stopped = false;