mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-16 06:59:55 -05:00
s/timespec/timeval
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1936 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
2198c2ec6e
commit
3736246a36
1 changed files with 17 additions and 16 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include <pulse/timeval.h>
|
||||
#include <pulse/xmalloc.h>
|
||||
|
|
@ -161,7 +162,7 @@ static void sink_input_kill(pa_sink_input* i) {
|
|||
static int rtpoll_work_cb(pa_rtpoll_item *i) {
|
||||
pa_memchunk chunk;
|
||||
int64_t k, j, delta;
|
||||
struct timespec now;
|
||||
struct timeval now;
|
||||
struct session *s;
|
||||
struct pollfd *p;
|
||||
|
||||
|
|
@ -317,7 +318,7 @@ static struct session *session_new(struct userdata *u, const pa_sdp_info *sdp_in
|
|||
int fd = -1;
|
||||
pa_memblock *silence;
|
||||
pa_sink_input_new_data data;
|
||||
struct timespec now;
|
||||
struct timeval now;
|
||||
|
||||
pa_assert(u);
|
||||
pa_assert(sdp_info);
|
||||
|
|
@ -461,7 +462,7 @@ static void sap_event_cb(pa_mainloop_api *m, pa_io_event *e, int fd, pa_io_event
|
|||
pa_sdp_info_destroy(&info);
|
||||
|
||||
} else {
|
||||
struct timespec now;
|
||||
struct timeval now;
|
||||
pa_rtclock_get(&now);
|
||||
pa_atomic_store(&s->timestamp, now.tv_sec);
|
||||
|
||||
|
|
@ -473,7 +474,7 @@ static void sap_event_cb(pa_mainloop_api *m, pa_io_event *e, int fd, pa_io_event
|
|||
static void check_death_event_cb(pa_mainloop_api *m, pa_time_event *t, const struct timeval *ptv, void *userdata) {
|
||||
struct session *s, *n;
|
||||
struct userdata *u = userdata;
|
||||
struct timespec now;
|
||||
struct timeval now;
|
||||
struct timeval tv;
|
||||
|
||||
pa_assert(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue