mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-21 17:21:13 +00:00
idstr: Fix docs of set_static_str_with_len()
The passed string must be NUL-terminated because otherwise a copy would be necessary to make it NUL-terminated, which defeats the whole purpose of the set_static() functions. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7863>
This commit is contained in:
parent
c0c9a31fc9
commit
bc63d85f19
2 changed files with 2 additions and 2 deletions
|
@ -22233,7 +22233,7 @@ lifetime of the process, e.g. has to be a static string.</doc>
|
|||
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstidstr.c">Sets @s to the string @value of length @len. @value needs to be valid for the
|
||||
remaining lifetime of the process, e.g. has to be a static string.
|
||||
|
||||
@value does not have to be NUL-terminated and @len should not include the
|
||||
@value must be NUL-terminated and @len should not include the
|
||||
NUL-terminator.</doc>
|
||||
<source-position filename="../subprojects/gstreamer/gst/gstidstr.h"/>
|
||||
<return-value transfer-ownership="none">
|
||||
|
|
|
@ -158,7 +158,7 @@ gst_id_str_set_static_str (GstIdStr * s, const gchar * value)
|
|||
* Sets @s to the string @value of length @len. @value needs to be valid for the
|
||||
* remaining lifetime of the process, e.g. has to be a static string.
|
||||
*
|
||||
* @value does not have to be NUL-terminated and @len should not include the
|
||||
* @value must be NUL-terminated and @len should not include the
|
||||
* NUL-terminator.
|
||||
*
|
||||
* Since: 1.26
|
||||
|
|
Loading…
Reference in a new issue