From 67e571f02b4d333f39f22067019dc55f544bb887 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 23 Feb 2012 17:57:21 +0100 Subject: Survive lost X11 display. --- softhddev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'softhddev.c') 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); -- cgit v1.2.3