dmx-remove-pid.rst 915 B

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