mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +00:00
sys/v4l/v4l_calls.c: check for and throw RESOURCE_BUSY
Original commit message from CVS: * sys/v4l/v4l_calls.c: (gst_v4l_open): check for and throw RESOURCE_BUSY
This commit is contained in:
parent
eed2e762b8
commit
ed8f44a90e
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-01-28 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* sys/v4l/v4l_calls.c: (gst_v4l_open):
|
||||
check for and throw RESOURCE_BUSY
|
||||
|
||||
2006-01-27 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/videoscale/vs_scanline.c: Oops, *that's* why I never
|
||||
|
|
|
@ -168,6 +168,12 @@ gst_v4l_open (GstV4lElement * v4lelement)
|
|||
(_("Device \"%s\" does not exist."), v4lelement->videodev), (NULL));
|
||||
return FALSE;
|
||||
}
|
||||
if (errno == EBUSY) {
|
||||
GST_ELEMENT_ERROR (v4lelement, RESOURCE, BUSY,
|
||||
(_("Device \"%s\" is already being used."), v4lelement->videodev),
|
||||
(NULL));
|
||||
return FALSE;
|
||||
}
|
||||
GST_ELEMENT_ERROR (v4lelement, RESOURCE, OPEN_READ_WRITE,
|
||||
(_("Could not open device \"%s\" for reading and writing."),
|
||||
v4lelement->videodev), GST_ERROR_SYSTEM);
|
||||
|
|
Loading…
Reference in a new issue