dmx-remove-pid.rst 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _DMX_REMOVE_PID:
  3. ==============
  4. DMX_REMOVE_PID
  5. ==============
  6. Name
  7. ----
  8. DMX_REMOVE_PID
  9. Synopsis
  10. --------
  11. .. c:function:: int ioctl(fd, DMX_REMOVE_PID, __u16 *pid)
  12. :name: DMX_REMOVE_PID
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by :c:func:`open() <dvb-dmx-open>`.
  17. ``pid``
  18. PID of the PES filter to be removed.
  19. Description
  20. -----------
  21. This ioctl call allows to remove a PID when multiple PIDs are set on a
  22. transport stream filter, e. g. a filter previously set up with output
  23. equal to :c:type:`DMX_OUT_TSDEMUX_TAP <dmx_output>`, created via either
  24. :ref:`DMX_SET_PES_FILTER` or :ref:`DMX_ADD_PID`.
  25. Return Value
  26. ------------
  27. On success 0 is returned.
  28. On error -1 is returned, and the ``errno`` variable is set
  29. appropriately.
  30. The generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.