diff options
author | João Paulo Rechi Vita <joao.vita@gmail.com> | 2008-08-14 18:05:01 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-11 01:12:05 +0300 |
commit | eb1e308710a27e0bba13a1b948225762c71946cf (patch) | |
tree | ae0d831586189795addcae71abc144ea44d70a64 | |
parent | 0519e5d446123649c1f0ae6bc3f88bb6a1e63c68 (diff) |
Initialize rtpoll_item
-rw-r--r-- | src/modules/module-bt-device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/module-bt-device.c b/src/modules/module-bt-device.c index 383ff4e3..3a756847 100644 --- a/src/modules/module-bt-device.c +++ b/src/modules/module-bt-device.c @@ -695,6 +695,7 @@ int pa__init(pa_module* m) { const char *rate, *channels; pa_modargs *ma; pa_sink_new_data data; + struct pollfd *pollfd; struct userdata *u; pa_assert(m); @@ -765,6 +766,10 @@ int pa__init(pa_module* m) { pa_log_error("failed to get stream fd (%d)", e); goto fail; } + u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, PA_RTPOLL_NEVER, 1); + pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); + pollfd->fd = u->stream_fd; + pollfd->events = pollfd->revents = 0; /* configure hw supported sample specs */ e = bt_hw_constraint(u); |