summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/playlist.c8
-rw-r--r--tools/udp_pes_scheduler.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/tools/playlist.c b/tools/playlist.c
index a9b3d2ea..cb9cbeba 100644
--- a/tools/playlist.c
+++ b/tools/playlist.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: playlist.c,v 1.20 2008-10-31 20:55:57 phintuka Exp $
+ * $Id: playlist.c,v 1.21 2008-11-16 15:02:45 rofafor Exp $
*
*/
@@ -144,8 +144,10 @@ class cID3Scanner : public cThread
{
cPlaylistItem *Item = NULL;
unsigned int Version = 0;
-
- (void)nice(10);
+ const int priority = 10;
+ errno = 0;
+ if((nice(priority) == -1) && errno)
+ LOGDBG("ID3Scanner: Can't nice to value: %d", priority);
LOGDBG("ID3Scanner Started");
while(Running()) {
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c
index b4e3edd1..14611afe 100644
--- a/tools/udp_pes_scheduler.c
+++ b/tools/udp_pes_scheduler.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: udp_pes_scheduler.c,v 1.35 2008-11-14 22:48:35 phintuka Exp $
+ * $Id: udp_pes_scheduler.c,v 1.36 2008-11-16 15:02:45 rofafor Exp $
*
*/
@@ -683,9 +683,11 @@ void cUdpScheduler::Action(void)
#endif
/* UDP Scheduler needs high priority */
- SetPriority(-5);
- (void)nice(-5);
+ const int priority = -5;
+ SetPriority(priority);
errno = 0;
+ if ((nice(priority) == -1) && errno)
+ LOGDBG("cUdpScheduler: Can't nice to value: %d", priority);
m_Lock.Lock();