1 .. -*- coding: utf-8; mode: rst -*-
3 .. _DMX_SET_PES_FILTER:
18 .. cpp:function:: int ioctl( int fd, int request = DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)
33 - File descriptor returned by a previous call to open().
39 - Equals DMX_SET_PES_FILTER for this command.
43 - struct dmx_pes_filter_params \*params
45 - Pointer to structure containing filter parameters.
51 This ioctl call sets up a PES filter according to the parameters
52 provided. By a PES filter is meant a filter that is based just on the
53 packet identifier (PID), i.e. no PES header or payload filtering
54 capability is supported.
60 On success 0 is returned, on error -1 and the ``errno`` variable is set
61 appropriately. The generic error codes are described at the
62 :ref:`Generic Error Codes <gen-errors>` chapter.
75 - This error code indicates that there are conflicting requests.
76 There are active filters filtering data from another input source.
77 Make sure that these filters are stopped before starting this