mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 02:13:46 +00:00
v4l2src: remove win32 ifdefs introduced by commit cff3f46760eac74c9bbd7a36aca44fedf327424b
V4l2src is under sys and does not exists/run under windows anyway.
This commit is contained in:
parent
cfb39dbb1b
commit
652a7fb91f
2 changed files with 0 additions and 10 deletions
|
@ -1245,13 +1245,8 @@ gst_v4l2src_get_read (GstV4l2Src * v4l2src, GstBuffer ** buf)
|
||||||
if (G_UNLIKELY (ret < 0)) {
|
if (G_UNLIKELY (ret < 0)) {
|
||||||
if (errno == EBUSY)
|
if (errno == EBUSY)
|
||||||
goto stopped;
|
goto stopped;
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
if (WSAGetLastError () != WSAEINTR)
|
|
||||||
goto select_error;
|
|
||||||
#else
|
|
||||||
if (errno != EAGAIN && errno != EINTR)
|
if (errno != EAGAIN && errno != EINTR)
|
||||||
goto select_error;
|
goto select_error;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
amount =
|
amount =
|
||||||
v4l2_read (v4l2src->v4l2object->video_fd, GST_BUFFER_DATA (*buf),
|
v4l2_read (v4l2src->v4l2object->video_fd, GST_BUFFER_DATA (*buf),
|
||||||
|
|
|
@ -1003,13 +1003,8 @@ gst_v4l2src_grab_frame (GstV4l2Src * v4l2src, GstBuffer ** buf)
|
||||||
if (G_UNLIKELY (ret < 0)) {
|
if (G_UNLIKELY (ret < 0)) {
|
||||||
if (errno == EBUSY)
|
if (errno == EBUSY)
|
||||||
goto stopped;
|
goto stopped;
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
if (WSAGetLastError () != WSAEINTR)
|
|
||||||
goto select_error;
|
|
||||||
#else
|
|
||||||
if (errno != EAGAIN && errno != EINTR)
|
if (errno != EAGAIN && errno != EINTR)
|
||||||
goto select_error;
|
goto select_error;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v4l2_ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF, &buffer) >= 0)
|
if (v4l2_ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF, &buffer) >= 0)
|
||||||
|
|
Loading…
Reference in a new issue