mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Some rearrangements in cDvbPlayer::Action() to avoid lockups on NPTL systems
This commit is contained in:
parent
1f246351b1
commit
7f5f26020b
@ -942,6 +942,7 @@ Reinhard Nissl <rnissl@gmx.de>
|
|||||||
function permanently returns 0
|
function permanently returns 0
|
||||||
for fixing a typo in detecting UTF-8
|
for fixing a typo in detecting UTF-8
|
||||||
for fixing handling fragments of less than 3 byte in cPesAssembler
|
for fixing handling fragments of less than 3 byte in cPesAssembler
|
||||||
|
for some rearrangements in cDvbPlayer::Action() to avoid lockups on NPTL systems
|
||||||
|
|
||||||
Richard Robson <richard_robson@beeb.net>
|
Richard Robson <richard_robson@beeb.net>
|
||||||
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
||||||
|
4
HISTORY
4
HISTORY
@ -3474,7 +3474,7 @@ Video Disk Recorder Revision History
|
|||||||
- Added a missing cMutexLock to cRemote::HasKeys() (thanks to Wolfgang Rohdewald).
|
- Added a missing cMutexLock to cRemote::HasKeys() (thanks to Wolfgang Rohdewald).
|
||||||
- All log entries regarding timers now contain a short description of the timer.
|
- All log entries regarding timers now contain a short description of the timer.
|
||||||
|
|
||||||
2005-05-07: Version 1.3.24
|
2005-05-08: Version 1.3.24
|
||||||
|
|
||||||
- Now including the optional user defined Make.config from the 'libsi' Makefile
|
- Now including the optional user defined Make.config from the 'libsi' Makefile
|
||||||
(thanks to Ville Skyttä).
|
(thanks to Ville Skyttä).
|
||||||
@ -3508,3 +3508,5 @@ Video Disk Recorder Revision History
|
|||||||
audio or dolby PID changes.
|
audio or dolby PID changes.
|
||||||
- Now preferring budget cards when selecting a DVB device for recording.
|
- Now preferring budget cards when selecting a DVB device for recording.
|
||||||
- Recordings now avoid zero sized video data files (thanks to Wolfgang Fitz).
|
- Recordings now avoid zero sized video data files (thanks to Wolfgang Fitz).
|
||||||
|
- Some rearrangements in cDvbPlayer::Action() to avoid lockups on NPTL systems
|
||||||
|
(thanks to Reinhard Nissl).
|
||||||
|
20
dvbplayer.c
20
dvbplayer.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbplayer.c 1.31 2005/05/05 12:52:40 kls Exp $
|
* $Id: dvbplayer.c 1.32 2005/05/08 13:51:00 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbplayer.h"
|
#include "dvbplayer.h"
|
||||||
@ -382,8 +382,8 @@ void cDvbPlayer::Action(void)
|
|||||||
|
|
||||||
// Read the next frame from the file:
|
// Read the next frame from the file:
|
||||||
|
|
||||||
if (!readFrame && (replayFile >= 0 || readIndex >= 0)) {
|
if (playMode != pmStill && playMode != pmPause) {
|
||||||
if (playMode != pmStill) {
|
if (!readFrame && (replayFile >= 0 || readIndex >= 0)) {
|
||||||
if (!nonBlockingFileReader->Reading()) {
|
if (!nonBlockingFileReader->Reading()) {
|
||||||
if (playMode == pmFast || (playMode == pmSlow && playDir == pdBackward)) {
|
if (playMode == pmFast || (playMode == pmSlow && playDir == pdBackward)) {
|
||||||
uchar FileNumber;
|
uchar FileNumber;
|
||||||
@ -440,16 +440,16 @@ void cDvbPlayer::Action(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
cCondWait::SleepMs(3); // this keeps the CPU load low
|
|
||||||
}
|
|
||||||
|
|
||||||
// Store the frame in the buffer:
|
// Store the frame in the buffer:
|
||||||
|
|
||||||
if (readFrame) {
|
if (readFrame) {
|
||||||
if (ringBuffer->Put(readFrame))
|
if (ringBuffer->Put(readFrame))
|
||||||
readFrame = NULL;
|
readFrame = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
cCondWait::SleepMs(3); // this keeps the CPU load low
|
||||||
|
|
||||||
// Get the next frame from the buffer:
|
// Get the next frame from the buffer:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user