diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-02-11 13:09:11 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-02-11 13:28:12 +0100 |
commit | 93bf011a748243f4ae7353129d1bc6a9cf082f0a (patch) | |
tree | d3d25f593b3dfa4080c9180079db6ca095f380f6 | |
parent | 3461ae6d95ebec8323a74395fcfdae81da568da5 (diff) | |
download | gstreamer-93bf011a748243f4ae7353129d1bc6a9cf082f0a.tar.gz |
error: Add RESOURCE_NOT_AUTHORIZED error
This allows to distinguish normal read failures from read failures
where we miss authorization.
-rw-r--r-- | gst/gsterror.c | 2 | ||||
-rw-r--r-- | gst/gsterror.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/gsterror.c b/gst/gsterror.c index af7a3f8d56..e925689505 100644 --- a/gst/gsterror.c +++ b/gst/gsterror.c @@ -223,6 +223,8 @@ gst_error_get_resource_error (GstResourceError code) return _("Could not get/set settings from/on resource."); case GST_RESOURCE_ERROR_NO_SPACE_LEFT: return _("No space left on the resource."); + case GST_RESOURCE_ERROR_NOT_AUTHORIZED: + return _("Not authorized to access resource."); case GST_RESOURCE_ERROR_NUM_ERRORS: default: break; diff --git a/gst/gsterror.h b/gst/gsterror.h index 96eb20ac81..fbd54e4014 100644 --- a/gst/gsterror.h +++ b/gst/gsterror.h @@ -124,6 +124,9 @@ typedef enum * @GST_RESOURCE_ERROR_SYNC: used when a synchronize on the resource fails. * @GST_RESOURCE_ERROR_SETTINGS: used when settings can't be manipulated on. * @GST_RESOURCE_ERROR_NO_SPACE_LEFT: used when the resource has no space left. + * @GST_RESOURCE_ERROR_NOT_AUTHORIZED: used when the resource can't be opened + * due to missing authorization. + * Since: 1.4 * @GST_RESOURCE_ERROR_NUM_ERRORS: the number of resource error types. * * Resource errors are for any resource used by an element: @@ -146,6 +149,7 @@ typedef enum GST_RESOURCE_ERROR_SYNC, GST_RESOURCE_ERROR_SETTINGS, GST_RESOURCE_ERROR_NO_SPACE_LEFT, + GST_RESOURCE_ERROR_NOT_AUTHORIZED, GST_RESOURCE_ERROR_NUM_ERRORS } GstResourceError; |