1.. -*- coding: utf-8; mode: rst -*-
2
3.. _DMX_SET_PES_FILTER:
4
5==================
6DMX_SET_PES_FILTER
7==================
8
9Name
10----
11
12DMX_SET_PES_FILTER
13
14
15Synopsis
16--------
17
18.. c:function:: int ioctl( int fd, DMX_SET_PES_FILTER, struct dmx_pes_filter_params *params)
19    :name: DMX_SET_PES_FILTER
20
21
22Arguments
23---------
24
25
26``fd``
27    File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
28
29``params``
30    Pointer to structure containing filter parameters.
31
32
33Description
34-----------
35
36This ioctl call sets up a PES filter according to the parameters
37provided. By a PES filter is meant a filter that is based just on the
38packet identifier (PID), i.e. no PES header or payload filtering
39capability is supported.
40
41
42Return Value
43------------
44
45On success 0 is returned.
46
47On error -1 is returned, and the ``errno`` variable is set
48appropriately.
49
50.. tabularcolumns:: |p{2.5cm}|p{15.0cm}|
51
52.. flat-table::
53    :header-rows:  0
54    :stub-columns: 0
55    :widths: 1 16
56
57
58    -  .. row 1
59
60       -  ``EBUSY``
61
62       -  This error code indicates that there are conflicting requests.
63	  There are active filters filtering data from another input source.
64	  Make sure that these filters are stopped before starting this
65	  filter.
66
67
68The generic error codes are described at the
69:ref:`Generic Error Codes <gen-errors>` chapter.
70