summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-19 00:04:43 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-19 00:04:43 +0200
commit79e1aa7cc7a9ac695c3af361bca72013ef272885 (patch)
treecc52764dfa4fab2cfc74c6aee5d71b27edbf014b /mplayer.c
parent3ba97da297e1e1a5ca9dabdda60cc6a62f77affc (diff)
parent39cb032fd184a62416f1e62d26e05576cfd8dbe4 (diff)
downloadmpv-79e1aa7cc7a9ac695c3af361bca72013ef272885.tar.bz2
mpv-79e1aa7cc7a9ac695c3af361bca72013ef272885.tar.xz
Merge svn changes up to r28341
Conflicts: configure libmpcodecs/native/rtjpegn.c
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mplayer.c b/mplayer.c
index 955c143786..e5594f8a7d 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1947,7 +1947,7 @@ static int fill_audio_out_buffers(struct MPContext *mpctx)
// handle audio-only case:
// this is where mplayer sleeps during audio-only playback
// to avoid 100% CPU use
- sleep_time = (ao_data.outburst - bytes_to_write) * 1000 / ao_data.samplerate;
+ sleep_time = (ao_data.outburst - bytes_to_write) * 1000 / ao_data.bps;
if (sleep_time < 10) sleep_time = 10; // limit to 100 wakeups per second
usec_sleep(sleep_time * 1000);
}
@@ -2412,7 +2412,7 @@ static void print_version(void){
/* Test for CPU capabilities (and corresponding OS support) for optimizing */
GetCpuCaps(&gCpuCaps);
-#ifdef ARCH_X86
+#if ARCH_X86
mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
gCpuCaps.hasMMX,gCpuCaps.hasMMX2,
gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,
@@ -2421,22 +2421,22 @@ static void print_version(void){
mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithRuntimeDetection);
#else
mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithCPUExtensions);
-#ifdef HAVE_MMX
+#if HAVE_MMX
mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX");
#endif
-#ifdef HAVE_MMX2
+#if HAVE_MMX2
mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX2");
#endif
-#ifdef HAVE_3DNOW
+#if HAVE_3DNOW
mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNow");
#endif
-#ifdef HAVE_3DNOWEX
+#if HAVE_3DNOWEX
mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNowEx");
#endif
-#ifdef HAVE_SSE
+#if HAVE_SSE
mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE");
#endif
-#ifdef HAVE_SSE2
+#if HAVE_SSE2
mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE2");
#endif
mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");