diff options
author | scop <scop> | 2005-05-28 10:40:00 +0000 |
---|---|---|
committer | scop <scop> | 2005-05-28 10:40:00 +0000 |
commit | f8210be1af80d0a7ef27a5408a71a055216d1b7a (patch) | |
tree | a560a638da445fc0ffc7cc7795d14d96dff5f73d /dxr3outputthread.c | |
parent | 21050a9fd6ec17093a3c8aa308912eba0dedaabb (diff) | |
download | vdr-plugin-dxr3-f8210be1af80d0a7ef27a5408a71a055216d1b7a.tar.gz vdr-plugin-dxr3-f8210be1af80d0a7ef27a5408a71a055216d1b7a.tar.bz2 |
Improve recovery and avoid lockups with bad streams (Jon Burgess).
Diffstat (limited to 'dxr3outputthread.c')
-rw-r--r-- | dxr3outputthread.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/dxr3outputthread.c b/dxr3outputthread.c index 2a6fc3b..8d6d311 100644 --- a/dxr3outputthread.c +++ b/dxr3outputthread.c @@ -22,7 +22,6 @@ #include <stdio.h> #include <unistd.h> #include <time.h> -#include <pthread.h> #include "dxr3outputthread.h" #include "dxr3log.h" @@ -90,14 +89,6 @@ void cDxr3AudioOutThread::Action() cLog::Instance() << "cDxr3AudioOutThread::Action Thread started\n"; - sched_param temp; - temp.sched_priority = 2; - - if (!pthread_setschedparam(pthread_self(), SCHED_RR, &temp)) - { - cLog::Instance() << "cDxr3AudioOutThread::Action(): Error can't set priority\n"; - } - while (!GetStopSignal()) { pts = 0; @@ -183,14 +174,6 @@ void cDxr3VideoOutThread::Action() cLog::Instance() << "cDxr3VideoOutThread::Action Thread started\n"; - sched_param temp; - temp.sched_priority = 1; - - if (!pthread_setschedparam(pthread_self(), SCHED_RR, &temp)) - { - cLog::Instance() << "cDxr3VideoOutThread::Action(): Error can't set priority\n"; - } - while (!GetStopSignal()) { cFixedLengthFrame* pNext = m_buffer.Get(); |