mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
error: Add RESOURCE_NOT_AUTHORIZED error
This allows to distinguish normal read failures from read failures where we miss authorization.
This commit is contained in:
parent
be32ae0252
commit
8a96585eee
2 changed files with 6 additions and 0 deletions
|
@ -223,6 +223,8 @@ gst_error_get_resource_error (GstResourceError code)
|
||||||
return _("Could not get/set settings from/on resource.");
|
return _("Could not get/set settings from/on resource.");
|
||||||
case GST_RESOURCE_ERROR_NO_SPACE_LEFT:
|
case GST_RESOURCE_ERROR_NO_SPACE_LEFT:
|
||||||
return _("No space left on the resource.");
|
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:
|
case GST_RESOURCE_ERROR_NUM_ERRORS:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -124,6 +124,9 @@ typedef enum
|
||||||
* @GST_RESOURCE_ERROR_SYNC: used when a synchronize on the resource fails.
|
* @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_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_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.
|
* @GST_RESOURCE_ERROR_NUM_ERRORS: the number of resource error types.
|
||||||
*
|
*
|
||||||
* Resource errors are for any resource used by an element:
|
* Resource errors are for any resource used by an element:
|
||||||
|
@ -146,6 +149,7 @@ typedef enum
|
||||||
GST_RESOURCE_ERROR_SYNC,
|
GST_RESOURCE_ERROR_SYNC,
|
||||||
GST_RESOURCE_ERROR_SETTINGS,
|
GST_RESOURCE_ERROR_SETTINGS,
|
||||||
GST_RESOURCE_ERROR_NO_SPACE_LEFT,
|
GST_RESOURCE_ERROR_NO_SPACE_LEFT,
|
||||||
|
GST_RESOURCE_ERROR_NOT_AUTHORIZED,
|
||||||
GST_RESOURCE_ERROR_NUM_ERRORS
|
GST_RESOURCE_ERROR_NUM_ERRORS
|
||||||
} GstResourceError;
|
} GstResourceError;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue