diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-03-27 17:06:45 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-03-27 17:06:45 +0000 |
commit | 882324f2ae04e10582ad306515c03ddce1b6a3ae (patch) | |
tree | b05850323186873b5b032803c450cf70082a9fac /sys/v4l2 | |
parent | e1dbb3bfa999234eafa5bf59e06959874bbd3e5a (diff) | |
download | gst-plugins-bad-882324f2ae04e10582ad306515c03ddce1b6a3ae.tar.gz gst-plugins-bad-882324f2ae04e10582ad306515c03ddce1b6a3ae.tar.bz2 gst-plugins-bad-882324f2ae04e10582ad306515c03ddce1b6a3ae.zip |
Small fix, now pwc driver can tell about its buffers.
Original commit message from CVS:
Small fix, now pwc driver can tell about its buffers.
Diffstat (limited to 'sys/v4l2')
-rw-r--r-- | sys/v4l2/v4l2src_calls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index 73adb042..19af162b 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -352,8 +352,11 @@ gst_v4l2src_capture_init (GstV4l2Src * v4l2src) gst_atomic_int_set (&buffer->refcount, 1); buffer->pool = v4l2src->pool; + memset (&buffer->buffer, 0x00, sizeof (buffer->buffer)); buffer->buffer.index = n; - buffer->buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + buffer->buffer.type = v4l2src->breq.type; + buffer->buffer.memory = v4l2src->breq.memory; + if (ioctl (GST_V4L2ELEMENT (v4l2src)->video_fd, VIDIOC_QUERYBUF, &buffer->buffer) < 0) { GST_ELEMENT_ERROR (v4l2src, RESOURCE, READ, (NULL), @@ -624,7 +627,6 @@ gst_v4l2src_get_fps (GstV4l2Src * v4l2src, gint * fps_n, gint * fps_d) return TRUE; } } - return FALSE; } |