Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 1 | .. -*- coding: utf-8; mode: rst -*- |
| 2 | |
| 3 | .. _DMX_REMOVE_PID: |
| 4 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 5 | ============== |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 6 | DMX_REMOVE_PID |
| 7 | ============== |
| 8 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 9 | Name |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 10 | ---- |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 11 | |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 12 | DMX_REMOVE_PID |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 14 | |
| 15 | Synopsis |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 16 | -------- |
| 17 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame^] | 18 | .. c:function:: int ioctl(fd, DMX_REMOVE_PID, __u16 *pid) |
| 19 | :name: DMX_REMOVE_PID |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 20 | |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 21 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 22 | Arguments |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 23 | --------- |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 24 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame^] | 25 | ``fd`` |
| 26 | File descriptor returned by :c:func:`open() <dvb-dmx-open>`. |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 27 | |
Mauro Carvalho Chehab | cf8076c | 2016-08-19 16:56:15 -0300 | [diff] [blame^] | 28 | ``pid`` |
| 29 | PID of the PES filter to be removed. |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 30 | |
| 31 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 32 | Description |
Mauro Carvalho Chehab | 586027c | 2016-07-05 07:58:48 -0300 | [diff] [blame] | 33 | ----------- |
| 34 | |
| 35 | This ioctl call allows to remove a PID when multiple PIDs are set on a |
| 36 | transport stream filter, e. g. a filter previously set up with output |
| 37 | equal to DMX_OUT_TSDEMUX_TAP, created via either |
| 38 | DMX_SET_PES_FILTER or DMX_ADD_PID. |
| 39 | |
| 40 | |
Mauro Carvalho Chehab | 15e7d61 | 2016-07-05 15:14:35 -0300 | [diff] [blame] | 41 | Return Value |
Mauro Carvalho Chehab | 47d23e3 | 2016-07-05 10:37:31 -0300 | [diff] [blame] | 42 | ------------ |
| 43 | |
| 44 | On success 0 is returned, on error -1 and the ``errno`` variable is set |
| 45 | appropriately. The generic error codes are described at the |
| 46 | :ref:`Generic Error Codes <gen-errors>` chapter. |