1 .. -*- coding: utf-8; mode: rst -*-
3 .. _DMX_SET_PES_FILTER:
18 .. c:function:: int ioctl( int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)
19 :name: DMX_SET_PES_FILTER
27 File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
30 Pointer to structure containing filter parameters.
36 This ioctl call sets up a PES filter according to the parameters
37 provided. By a PES filter is meant a filter that is based just on the
38 packet identifier (PID), i.e. no PES header or payload filtering
39 capability is supported.
45 On success 0 is returned, on error -1 and the ``errno`` variable is set
46 appropriately. The generic error codes are described at the
47 :ref:`Generic Error Codes <gen-errors>` chapter.
49 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
60 - This error code indicates that there are conflicting requests.
61 There are active filters filtering data from another input source.
62 Make sure that these filters are stopped before starting this