1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.video
4 .. _VIDEO_SET_STREAMTYPE:
15 .. attention:: This ioctl is deprecated.
20 .. c:macro:: VIDEO_SET_STREAMTYPE
22 ``int ioctl(fd, VIDEO_SET_STREAMTYPE, int type)``
35 - File descriptor returned by a previous call to open().
41 - Equals VIDEO_SET_STREAMTYPE for this command.
52 This ioctl tells the driver which kind of stream to expect being written
53 to it. If this call is not used the default of video PES is used. Some
54 drivers might not support this call and always expect PES.
59 On success 0 is returned, on error -1 and the ``errno`` variable is set
60 appropriately. The generic error codes are described at the
61 :ref:`Generic Error Codes <gen-errors>` chapter.