[PATCH] sectionsd: make commandPauseScanning really stop demuxers

From: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: Sun, 19 Feb 2012 18:49:56 +0100

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2128 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: c3305aeaee
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2012-02-27 (Mon, 27 Feb 2012)



------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2012-02-27 18:52:09 +00:00
parent a471129244
commit ace743baf7

View File

@@ -2318,10 +2318,14 @@ static void commandPauseScanning(int connfd, char *data, const unsigned dataLeng
if (scanning && pause)
{
scanning = 0;
dmxCN.request_pause();
pthread_cond_broadcast(&dmxCN.change_cond);
dmxEIT.request_pause();
pthread_cond_broadcast(&dmxEIT.change_cond);
#ifdef ENABLE_FREESATEPG
dmxFSEIT.request_pause();
pthread_cond_broadcast(&dmxFSEIT.change_cond);
#endif
#ifdef UPDATE_NETWORKS
dmxNIT.request_pause();
@@ -2330,7 +2334,6 @@ static void commandPauseScanning(int connfd, char *data, const unsigned dataLeng
#ifdef ENABLE_PPT
dmxPPT.request_pause();
#endif
scanning = 0;
}
else if (!pause && !scanning)
{