summaryrefslogtreecommitdiff
path: root/sys/v4l
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2006-01-28 16:35:47 (GMT)
committerThomas Vander Stichele <thomas@apestaart.org>2006-01-28 16:35:47 (GMT)
commited8f44a90ef09b908c804fed55c60bd6fee20f1e (patch)
treea6857a8a4f5ae55d6a8449155a1c1da4e30b25e6 /sys/v4l
parenteed2e762b8fc1afb84942ce3259de42d4655c670 (diff)
downloadgst-plugins-base-ed8f44a90ef09b908c804fed55c60bd6fee20f1e.tar.gz
gst-plugins-base-ed8f44a90ef09b908c804fed55c60bd6fee20f1e.tar.xz
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
Diffstat (limited to 'sys/v4l')
-rw-r--r--sys/v4l/v4l_calls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/v4l/v4l_calls.c b/sys/v4l/v4l_calls.c
index 0f92c4e..285ac26 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);