mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
pbutils: discoverer: Mark gst_discoverer_stream_info_get_stream_id() as nullable
It can return NULL in certain situations. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4572>
This commit is contained in:
parent
c789b66971
commit
4cbd8d6fc6
2 changed files with 2 additions and 2 deletions
|
@ -1255,7 +1255,7 @@ after usage.</doc>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream_id" c:identifier="gst_discoverer_stream_info_get_stream_id">
|
<method name="get_stream_id" c:identifier="gst_discoverer_stream_info_get_stream_id">
|
||||||
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.h"/>
|
<source-position filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.h"/>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none" nullable="1">
|
||||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c">the stream ID of this stream. If you wish to
|
<doc xml:space="preserve" filename="../subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c">the stream ID of this stream. If you wish to
|
||||||
use the stream ID after the life-time of @info you will need to copy it.</doc>
|
use the stream ID after the life-time of @info you will need to copy it.</doc>
|
||||||
<type name="utf8" c:type="const gchar*"/>
|
<type name="utf8" c:type="const gchar*"/>
|
||||||
|
|
|
@ -693,7 +693,7 @@ gst_discoverer_stream_info_get_toc (GstDiscovererStreamInfo * info)
|
||||||
* gst_discoverer_stream_info_get_stream_id:
|
* gst_discoverer_stream_info_get_stream_id:
|
||||||
* @info: a #GstDiscovererStreamInfo
|
* @info: a #GstDiscovererStreamInfo
|
||||||
*
|
*
|
||||||
* Returns: (transfer none): the stream ID of this stream. If you wish to
|
* Returns: (transfer none) (nullable): the stream ID of this stream. If you wish to
|
||||||
* use the stream ID after the life-time of @info you will need to copy it.
|
* use the stream ID after the life-time of @info you will need to copy it.
|
||||||
*/
|
*/
|
||||||
const gchar *
|
const gchar *
|
||||||
|
|
Loading…
Reference in a new issue