get_pollfd


Description:

[ Version ( since = "1.14" ) ]
public PollFD get_pollfd ()

Gets the file descriptor from the bus which can be used to get notified about messages being available with functions like poll, and allows integration into other event loops based on file descriptors.

Whenever a message is available, the POLLIN / IN event is set.

Warning: NEVER read or write anything to the returned fd but only use it for getting notifications via poll or similar and then use the normal GstBus API, e.g. pop.

Parameters:

this

A Bus

fd

A GPollFD to fill