From fe02d29eef90156c8ee5eb0acc0d81cff84ffd5c Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Fri, 26 Oct 2007 23:48:30 +0000 Subject: [PATCH] Simplified GetTSPacket(). --- device.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/device.c b/device.c index 54dcfe1..2322c64 100644 --- a/device.c +++ b/device.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: device.c,v 1.75 2007/10/26 22:07:10 rahrenbe Exp $ + * $Id: device.c,v 1.76 2007/10/26 23:48:30 rahrenbe Exp $ */ #include "config.h" @@ -384,11 +384,9 @@ bool cIptvDevice::GetTSPacket(uchar *&Data) } return true; } - else - cCondWait::SleepMs(100); // to reduce cpu load } - else - cCondWait::SleepMs(100); // and avoid busy loop + // Reduce cpu load by preventing busylooping + cCondWait::SleepMs(100); Data = NULL; return true; }