After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698827 - v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-25 10:52 UTC by Michael Olbrich
Modified: 2013-04-25 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (979 bytes, patch)
2013-04-25 10:52 UTC, Michael Olbrich
committed Details | Review

Description Michael Olbrich 2013-04-25 10:52:50 UTC
Created attachment 242401 [details] [review]
patch

In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input
does not support the STD API.
Comment 1 Sebastian Dröge (slomo) 2013-04-25 10:56:29 UTC
This again seems wrong to me, what was the reason for changing that from EINVAL and is it only in that single kernel release or also in later versions?
Comment 2 Michael Olbrich 2013-04-25 13:18:42 UTC
I'm pretty sure this is necessary. The ENODATA was introduced by this commit:

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a5338190efc7cfa8c99a6856342a77d21c9a05cf
Comment 3 Sebastian Dröge (slomo) 2013-04-25 13:41:17 UTC
Ah, the ioctl() is handled but there's just no data available for it. Yes :)

commit 305023fe9d5f8f3ffd5c49b1d1b743f569a9265d
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Thu Oct 18 10:37:35 2012 +0200

    v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
    
    In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input
    does not support the STD API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698827