mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
uri: Fix wrong 'array zero-terminated=1' annotation for strings
This commit is contained in:
parent
05daa261f1
commit
4a2b138f52
1 changed files with 9 additions and 10 deletions
19
gst/gsturi.c
19
gst/gsturi.c
|
@ -397,9 +397,9 @@ gst_uri_has_protocol (const gchar * uri, const gchar * protocol)
|
||||||
*
|
*
|
||||||
* Free-function: g_free
|
* Free-function: g_free
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (array zero-terminated=1): the location for this
|
* Returns: (transfer full): the location for this URI. Returns NULL if the
|
||||||
* URI. Returns NULL if the URI isn't valid. If the URI does not contain
|
* URI isn't valid. If the URI does not contain a location, an empty
|
||||||
* a location, an empty string is returned.
|
* string is returned.
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
gst_uri_get_location (const gchar * uri)
|
gst_uri_get_location (const gchar * uri)
|
||||||
|
@ -438,15 +438,14 @@ gst_uri_get_location (const gchar * uri)
|
||||||
/**
|
/**
|
||||||
* gst_uri_construct:
|
* gst_uri_construct:
|
||||||
* @protocol: Protocol for URI
|
* @protocol: Protocol for URI
|
||||||
* @location: (array zero-terminated=1) (transfer none): Location for URI
|
* @location: (transfer none): Location for URI
|
||||||
*
|
*
|
||||||
* Constructs a URI for a given valid protocol and location.
|
* Constructs a URI for a given valid protocol and location.
|
||||||
*
|
*
|
||||||
* Free-function: g_free
|
* Free-function: g_free
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (array zero-terminated=1): a new string for this
|
* Returns: (transfer full): a new string for this URI. Returns NULL if the
|
||||||
* URI. Returns NULL if the given URI protocol is not valid, or the given
|
* given URI protocol is not valid, or the given location is NULL.
|
||||||
* location is NULL.
|
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
gst_uri_construct (const gchar * protocol, const gchar * location)
|
gst_uri_construct (const gchar * protocol, const gchar * location)
|
||||||
|
@ -667,9 +666,9 @@ gst_uri_handler_get_uri_type (GstURIHandler * handler)
|
||||||
* Gets the list of protocols supported by @handler. This list may not be
|
* Gets the list of protocols supported by @handler. This list may not be
|
||||||
* modified.
|
* modified.
|
||||||
*
|
*
|
||||||
* Returns: (transfer none) (array zero-terminated=1) (element-type utf8): the
|
* Returns: (transfer none) (element-type utf8): the supported protocols.
|
||||||
* supported protocols. Returns NULL if the @handler isn't implemented
|
* Returns NULL if the @handler isn't implemented properly, or the @handler
|
||||||
* properly, or the @handler doesn't support any protocols.
|
* doesn't support any protocols.
|
||||||
*/
|
*/
|
||||||
const gchar *const *
|
const gchar *const *
|
||||||
gst_uri_handler_get_protocols (GstURIHandler * handler)
|
gst_uri_handler_get_protocols (GstURIHandler * handler)
|
||||||
|
|
Loading…
Reference in a new issue