mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Merge pull request #12 from 9000h/Switch-to-posix-compaatible-sched_yield
Switch to posix compatible sched_yield
This commit is contained in:
commit
bdfe1a62c9
3
audio.c
3
audio.c
@ -51,6 +51,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
|
#include <sched.h>
|
||||||
|
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#define _(str) gettext(str) ///< gettext shortcut
|
#define _(str) gettext(str) ///< gettext shortcut
|
||||||
@ -1545,7 +1546,7 @@ static int OssThread(void)
|
|||||||
if (err < 0) { // underrun error
|
if (err < 0) { // underrun error
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
pthread_yield();
|
sched_yield();
|
||||||
usleep(OssFragmentTime * 1000); // let fill/empty the buffers
|
usleep(OssFragmentTime * 1000); // let fill/empty the buffers
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user