diff options
Diffstat (limited to 'sys/v4l/v4l_calls.c')
-rw-r--r-- | sys/v4l/v4l_calls.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/v4l/v4l_calls.c b/sys/v4l/v4l_calls.c index 0f92c4ee..285ac26e 100644 --- a/sys/v4l/v4l_calls.c +++ b/sys/v4l/v4l_calls.c @@ -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); |