v4l2: remove poll and send event instead

Don't start a thread for polling in the node itself but let this be
handled by the app.
This commit is contained in:
Wim Taymans 2016-07-07 16:59:23 +02:00
parent cbde76f500
commit 81bde64550
6 changed files with 72 additions and 72 deletions

View file

@ -75,12 +75,14 @@ struct _SpaEvent {
* @events: events to watch for
* @revents: result events
* @callback: callback called when there was activity on @fd
* @user_data: user data to pass to @callback
*/
typedef struct {
int fd;
short events;
short revents;
SpaNotify callback;
void *user_data;
} SpaEventPoll;
#ifdef __cplusplus