diff options
author | Johns <johns98@gmx.net> | 2012-02-23 17:57:21 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-23 17:57:21 +0100 |
commit | 67e571f02b4d333f39f22067019dc55f544bb887 (patch) | |
tree | 832b839dcd8f065711746865392c3e5636a60cf7 /softhddev.c | |
parent | c17af0e95857877c608bcced814ed2cd1edb1482 (diff) | |
download | vdr-plugin-softhddevice-67e571f02b4d333f39f22067019dc55f544bb887.tar.gz vdr-plugin-softhddevice-67e571f02b4d333f39f22067019dc55f544bb887.tar.bz2 |
Survive lost X11 display.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c index b9c4dfd..a49b103 100644 --- a/softhddev.c +++ b/softhddev.c @@ -1848,7 +1848,7 @@ int SetPlayMode(int play_mode) NewAudioStream = 1; } } - if (play_mode == 2 || play_mode == 3 ) { + if (play_mode == 2 || play_mode == 3) { Debug(3, "softhddev: FIXME: audio only, silence video errors\n"); } Play(); @@ -1997,7 +1997,7 @@ void StillPicture(const uint8_t * data, int size) int Poll(int timeout) { // buffers are too full - if ( atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX * 2 / 3 + if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX * 2 / 3 || AudioFreeBytes() < AUDIO_MIN_BUFFER_FREE * 2) { if (timeout) { // let display thread work usleep(timeout * 1000); |