diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-05-18 00:39:28 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-05-18 00:39:28 +0100 |
commit | 7d1dc2ac6742183a79680dfae90c391cdd5e359b (patch) | |
tree | b4dbc74f83635945bac4ccb93ee01f5cf266dc07 /src/xine-engine/video_decoder.c | |
parent | 67e50b140e5cebdb516d65b15e5ea0fc2faefc5a (diff) | |
parent | 079f5786af007a4096a07303d695b18cb46e81df (diff) | |
download | xine-lib-7d1dc2ac6742183a79680dfae90c391cdd5e359b.tar.gz xine-lib-7d1dc2ac6742183a79680dfae90c391cdd5e359b.tar.bz2 |
Merge from 1.2 main branch, except for summary info related to the vdr plugins.
Diffstat (limited to 'src/xine-engine/video_decoder.c')
-rw-r--r-- | src/xine-engine/video_decoder.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index fee75ec76..3d39b4550 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.c @@ -28,6 +28,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #define XINE_ENGINE_INTERNAL @@ -110,6 +111,15 @@ static void *video_decoder_loop (void *stream_gen) { int prof_video_decode = -1; int prof_spu_decode = -1; uint32_t buftype_unknown = 0; + +#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); +#endif /* WIN32 */ if (prof_video_decode == -1) prof_video_decode = xine_profiler_allocate_slot ("video decoder"); |