[vlc-devel] [PATCH] avoid redefining existing symbols
Rafaël Carré
funman at videolan.org
Fri Mar 1 14:43:25 CET 2013
---
src/audio_output/dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 5b720f3..5bedd0b 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -31,8 +31,6 @@
#include <assert.h>
#ifdef __unix__
# include <sched.h>
-#else
-# define sched_yield() (void)0
#endif
#include <vlc_common.h>
@@ -338,7 +336,9 @@ int aout_DecPlay (audio_output_t *p_aout, block_t *p_buffer, int i_input_rate)
}
aout_unlock( p_aout );
+#ifdef __unix__
sched_yield();
+#endif
return 0;
}
--
1.7.10.4
More information about the vlc-devel
mailing list