[gstreamer-bugs] [Bug 563574] v4l2src should capture in non-blocking mode

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Dec 10 01:37:43 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=563574

  GStreamer | gst-plugins-good | Ver: HEAD CVS

Stefan Kost (gstreamer, gtkdoc dev) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ensonic at sonicpulse.de
           Severity|normal                      |enhancement




------- Comment #1 from Stefan Kost (gstreamer, gtkdoc dev)  2008-12-10 09:37 UTC -------
gst-plugins-good/sys/v4l2$ grep -C1 -Hn " open (" *.c
gstv4l2object.c-108-
gstv4l2object.c:109:            if ((fd = open (device, O_RDWR | O_NONBLOCK)) >
0 || errno == EBUSY) {
gstv4l2object.c-110-              if (fd > 0)
--
v4l2_calls.c-422-  v4l2object->video_fd =
v4l2_calls.c:423:      open (v4l2object->videodev, O_RDWR /* | O_NONBLOCK */ );
v4l2_calls.c-424-

So I removed the uncommented /* | O_NONBLOCK */ in v4l2_calls.c:423 and that
leads to:

0:00:00.241962456 16029  0x88d7058 WARN               v4l2src
v4l2src_calls.c:998:gst_v4l2src_grab_frame:<v4l2src0> problem grabbing frame 0
(ix=0), trials=50, pool-ct=3, buf.flags=0
0:00:00.242056393 16029  0x88d7058 WARN               v4l2src
v4l2src_calls.c:1006:gst_v4l2src_grab_frame:<v4l2src0> Non-blocking I/O has
been selected using O_NONBLOCK and no buffer was in the outgoing queue. device
/dev/video0

The commented O_NONBLOCK was added in
http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/sys/v4l2/v4l2_calls.c?r1=1.23&r2=1.24
by alima saying "Just make few things more robust and also some identation."

No idea how much changes it would need to support it.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=563574.




More information about the gstreamer-bugs mailing list