mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
v4l2: cast unused return to void
Quell unchecked return value defect by casting the return value to void and making it explicit it is going to be ignored. CID #206031
This commit is contained in:
parent
5c7c90ff2c
commit
dad26043c3
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ gst_v4l2_set_frequency (GstV4l2Object * v4l2object,
|
||||||
|
|
||||||
freq.tuner = tunernum;
|
freq.tuner = tunernum;
|
||||||
/* fill in type - ignore error */
|
/* fill in type - ignore error */
|
||||||
v4l2_ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq);
|
(void) v4l2_ioctl (v4l2object->video_fd, VIDIOC_G_FREQUENCY, &freq);
|
||||||
freq.frequency = frequency / channel->freq_multiplicator;
|
freq.frequency = frequency / channel->freq_multiplicator;
|
||||||
|
|
||||||
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_S_FREQUENCY, &freq) < 0)
|
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_S_FREQUENCY, &freq) < 0)
|
||||||
|
|
Loading…
Reference in a new issue