diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-29 23:20:45 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-29 23:20:45 +0000 |
commit | 51e5863a97bdfc80b5c2024236f990210f4541f8 (patch) | |
tree | a405601ca4a288858cdb43a438f31d5e5969674b /sys/oss/gstosselement.c | |
parent | 9925c8d04217e7e41993ee98fe77ddd02eb857a1 (diff) |
GST_ELEMENT_ERROR
Original commit message from CVS:
GST_ELEMENT_ERROR
Diffstat (limited to 'sys/oss/gstosselement.c')
-rw-r--r-- | sys/oss/gstosselement.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 1219cc4f..e044ba92 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -698,31 +698,31 @@ gst_osselement_open_audio (GstOssElement *oss) if (oss->fd < 0) { switch (errno) { case EBUSY: - gst_element_error (oss, RESOURCE, BUSY, + GST_ELEMENT_ERROR (oss, RESOURCE, BUSY, (_("OSS device \"%s\" is already in use by another program"), oss->device), NULL); break; case EACCES: case ETXTBSY: if (mode == GST_OSSELEMENT_WRITE) - gst_element_error (oss, RESOURCE, OPEN_WRITE, + GST_ELEMENT_ERROR (oss, RESOURCE, OPEN_WRITE, (_("Could not access device \"%s\", check its permissions"), oss->device), GST_ERROR_SYSTEM); else - gst_element_error (oss, RESOURCE, OPEN_READ, + GST_ELEMENT_ERROR (oss, RESOURCE, OPEN_READ, (_("Could not access device \"%s\", check its permissions"), oss->device), GST_ERROR_SYSTEM); break; case ENXIO: case ENODEV: case ENOENT: - gst_element_error (oss, RESOURCE, NOT_FOUND, + GST_ELEMENT_ERROR (oss, RESOURCE, NOT_FOUND, (_("Device \"%s\" does not exist"), oss->device), GST_ERROR_SYSTEM); break; default: /* FIXME: strerror is not threadsafe */ if (mode == GST_OSSELEMENT_WRITE) - gst_element_error (oss, RESOURCE, OPEN_WRITE, + GST_ELEMENT_ERROR (oss, RESOURCE, OPEN_WRITE, (_("Could not open device \"%s\" for writing"), oss->device), GST_ERROR_SYSTEM); else - gst_element_error (oss, RESOURCE, OPEN_READ, + GST_ELEMENT_ERROR (oss, RESOURCE, OPEN_READ, (_("Could not open device \"%s\" for reading"), oss->device), GST_ERROR_SYSTEM); break; } |