mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
Simplified GetTSPacket().
This commit is contained in:
parent
fab6904a57
commit
fe02d29eef
8
device.c
8
device.c
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* 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"
|
#include "config.h"
|
||||||
@ -384,11 +384,9 @@ bool cIptvDevice::GetTSPacket(uchar *&Data)
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
cCondWait::SleepMs(100); // to reduce cpu load
|
|
||||||
}
|
}
|
||||||
else
|
// Reduce cpu load by preventing busylooping
|
||||||
cCondWait::SleepMs(100); // and avoid busy loop
|
cCondWait::SleepMs(100);
|
||||||
Data = NULL;
|
Data = NULL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user