diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-03-20 14:40:04 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-03-20 14:40:04 +0000 |
commit | 3a90f0a0411ae770b678b275dbb9b588f38840d7 (patch) | |
tree | 5998c6c3b69fe369fd7f53772d2f610635663e42 /src/xine-engine/video_decoder.c | |
parent | 37a3c50f6f598987afb1559fd6c936803aa318e9 (diff) | |
parent | 5b09b3f35e568238c7c12f454a824c40de9825ea (diff) | |
download | xine-lib-3a90f0a0411ae770b678b275dbb9b588f38840d7.tar.gz xine-lib-3a90f0a0411ae770b678b275dbb9b588f38840d7.tar.bz2 |
Merge from 1.1.
Diffstat (limited to 'src/xine-engine/video_decoder.c')
-rw-r--r-- | src/xine-engine/video_decoder.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index d128226bb..564eacb5d 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <errno.h> #define XINE_ENGINE_INTERNAL @@ -121,12 +122,9 @@ static void *video_decoder_loop (void *stream_gen) { int disable_decoder_flush_at_discontinuity; #ifndef WIN32 - /* nice(-value) will fail silently for normal users. - * however when running as root this may provide smoother - * playback. follow the link for more information: - * http://cambuca.ldhs.cetuc.puc-rio.br/~miguel/multimedia_sim/ - */ - nice(-1); + errno = 0; + if (nice(-1) == -1 && errno) + xine_log(stream->xine, XINE_LOG_MSG, "video_decoder: can't raise nice priority by 1: %s\n", strerror(errno)); #endif /* WIN32 */ if (prof_video_decode == -1) |