diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-08 13:37:54 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-08 13:37:54 +0000 |
commit | 05778635e41665a615230c029d49b58de0a4b858 (patch) | |
tree | 8e6c60c4233faaa56afdf2dd64fa5e34a998570e /src | |
parent | 137f3a0900c0e94dd04fe72d18b08f2503c2aa40 (diff) | |
download | xine-lib-05778635e41665a615230c029d49b58de0a4b858.tar.gz xine-lib-05778635e41665a615230c029d49b58de0a4b858.tar.bz2 |
make that a define to improve maintainabilityxine_1-rc3c-release1-rc3c
CVS patchset: 6350
CVS date: 2004/04/08 13:37:54
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/video_decoder.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index 6f5085dad..0255d71fe 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_decoder.c,v 1.147 2004/04/08 11:10:10 valtri Exp $ + * $Id: video_decoder.c,v 1.148 2004/04/08 13:37:54 mroi Exp $ * */ @@ -41,6 +41,9 @@ #include "xineutils.h" #include <sched.h> +#define SPU_SLEEP_INTERVAL (90000/2) + + static void update_spu_decoder (xine_stream_t *stream, int type) { int streamtype = (type>>16) & 0xFF; @@ -73,10 +76,10 @@ int _x_spu_decoder_sleep(xine_stream_t *stream, int64_t next_spu_vpts) time = 0; /* wait in pieces of one half second */ - if (next_spu_vpts - time < 90000/2) + if (next_spu_vpts - time < SPU_SLEEP_INTERVAL) wait = next_spu_vpts - time; else - wait = 90000/2; + wait = SPU_SLEEP_INTERVAL; if (wait > 0) xine_usec_sleep(wait * 11); @@ -92,7 +95,7 @@ int _x_spu_decoder_sleep(xine_stream_t *stream, int64_t next_spu_vpts) if (thread_vacant) thread_vacant = !stream->demux_action_pending; - } while (wait == 90000/2 && thread_vacant); + } while (wait == SPU_SLEEP_INTERVAL && thread_vacant); return thread_vacant; } |