From b35d62e2551508ded2cd3de27bb61aea112ca2eb Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 30 Jan 2011 12:34:48 +0000 Subject: [PATCH] libdvbsub: speed up exit during shutdown git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1088 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/695507903ca7d65bb9ba56dd88e7be9de60eb97a Author: Stefan Seyfried Date: 2011-01-30 (Sun, 30 Jan 2011) ------------------ This commit was generated by Migit --- lib/libdvbsub/dvbsub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbsub/dvbsub.cpp b/lib/libdvbsub/dvbsub.cpp index 39844709b..39dc0c9a8 100644 --- a/lib/libdvbsub/dvbsub.cpp +++ b/lib/libdvbsub/dvbsub.cpp @@ -299,7 +299,7 @@ static void* reader_thread(void * /*arg*/) memcpy(buf, tmp, 6); /* read rest of the packet */ - while((count < packlen) /* && !dvbsub_paused*/) { + while((count < packlen) && !dvbsub_stopped) { len = dmx->Read(buf+count, packlen-count, 1000); if (len < 0) { continue;