mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
audiodecoder: Fix gst_audio_decoder_get_audio_info return ownership GTK-Doc
GTK-Doc specifies that, by default, the caller owns returned objects, so that the caller should free it when it is done. However, in the case of this function, the returned GstAudioInfo is owned by the decoder, so this default choice is incorrect. This creates double free problems when using GStreamer Rust bindings, because they are generated using the information contained in the docs. Fix this by correctly specifying that the caller does not own the returned object. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1032>
This commit is contained in:
parent
e1a8393ba7
commit
2fd2540ea5
1 changed files with 1 additions and 1 deletions
|
@ -3271,7 +3271,7 @@ _gst_audio_decoder_error (GstAudioDecoder * dec, gint weight,
|
|||
* gst_audio_decoder_get_audio_info:
|
||||
* @dec: a #GstAudioDecoder
|
||||
*
|
||||
* Returns: a #GstAudioInfo describing the input audio format
|
||||
* Returns: (transfer none): a #GstAudioInfo describing the input audio format
|
||||
*/
|
||||
GstAudioInfo *
|
||||
gst_audio_decoder_get_audio_info (GstAudioDecoder * dec)
|
||||
|
|
Loading…
Reference in a new issue