1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.dmx
4 .. _DMX_SET_PES_FILTER:
18 .. c:macro:: DMX_SET_PES_FILTER
20 ``int ioctl(int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)``
26 File descriptor returned by :c:func:`open()`.
29 Pointer to structure containing filter parameters.
34 This ioctl call sets up a PES filter according to the parameters
35 provided. By a PES filter is meant a filter that is based just on the
36 packet identifier (PID), i.e. no PES header or payload filtering
37 capability is supported.
42 On success 0 is returned.
44 On error -1 is returned, and the ``errno`` variable is set
47 .. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
58 - This error code indicates that there are conflicting requests.
59 There are active filters filtering data from another input source.
60 Make sure that these filters are stopped before starting this
63 The generic error codes are described at the
64 :ref:`Generic Error Codes <gen-errors>` chapter.