Improve decoder and add buffer validator

This commit is contained in:
Kamil Trzcinski
2022-04-08 10:57:55 +02:00
parent 6806a6bdf2
commit 1352df220b
5 changed files with 11 additions and 2 deletions

View File

@ -181,6 +181,7 @@ int device_set_decoder_start(device_t *dev, bool do_on)
E_LOG_DEBUG(dev, "Setting decoder state %s...", do_on ? "Start" : "Stop");
E_XIOCTL(dev, dev->fd, VIDIOC_DECODER_CMD, &cmd, "Cannot set decoder state");
dev->decoder_started = do_on;
return 0;
error: