[vlc-commits] Simplify c14c1b13
Rafaël Carré
git at videolan.org
Sat Mar 2 09:08:20 CET 2013
vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Sat Mar 2 09:07:32 2013 +0100| [22b3452a76875312dfb6bbbc4e1b3fc1e0ca33e6] | committer: Rafaël Carré
Simplify c14c1b13
sched.h is already pulled by pthread.h
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=22b3452a76875312dfb6bbbc4e1b3fc1e0ca33e6
---
src/audio_output/dec.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 5b720f3..8e3f3ee 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -29,11 +29,6 @@
#endif
#include <assert.h>
-#ifdef __unix__
-# include <sched.h>
-#else
-# define sched_yield() (void)0
-#endif
#include <vlc_common.h>
#include <vlc_aout.h>
@@ -338,7 +333,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;
}
More information about the vlc-commits
mailing list