1 .. -*- coding: utf-8; mode: rst -*-
3 .. _VIDEO_SET_STREAMTYPE:
18 .. cpp:function:: int ioctl(fd, int request = VIDEO_SET_STREAMTYPE, int type)
33 - File descriptor returned by a previous call to open().
39 - Equals VIDEO_SET_STREAMTYPE for this command.
51 This ioctl tells the driver which kind of stream to expect being written
52 to it. If this call is not used the default of video PES is used. Some
53 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.