1 .. -*- coding: utf-8; mode: rst -*-
3 .. _VIDEO_SET_STREAMTYPE:
14 .. attention:: This ioctl is deprecated.
19 .. c:function:: int ioctl(fd, VIDEO_SET_STREAMTYPE, int type)
20 :name: VIDEO_SET_STREAMTYPE
35 - File descriptor returned by a previous call to open().
41 - Equals VIDEO_SET_STREAMTYPE for this command.
53 This ioctl tells the driver which kind of stream to expect being written
54 to it. If this call is not used the default of video PES is used. Some
55 drivers might not support this call and always expect PES.
61 On success 0 is returned, on error -1 and the ``errno`` variable is set
62 appropriately. The generic error codes are described at the
63 :ref:`Generic Error Codes <gen-errors>` chapter.