From 0b8fb4a448fd0249e8a86c92c4b7d77ca9473cf7 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 25 Nov 2021 05:34:44 +0100 Subject: [PATCH] media-codecs: Clarify that codec availability should be checked before use --- plugins/sip/gst-rfc3551.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/sip/gst-rfc3551.c b/plugins/sip/gst-rfc3551.c index cd022b4..9693557 100644 --- a/plugins/sip/gst-rfc3551.c +++ b/plugins/sip/gst-rfc3551.c @@ -66,7 +66,9 @@ media_codec_available_in_gst (MediaCodecInfo *codec) { * * @name: The name of the codec * - * Returns: (transfer none): A #MediaCodecInfo, if found + * Returns: (transfer none): A #MediaCodecInfo, if found. + * You should check if the codec is available on your system before + * trying to use it with media_codec_available_in_gst() */ MediaCodecInfo * media_codec_by_name (const char *name) @@ -85,7 +87,9 @@ media_codec_by_name (const char *name) * * @payload_id: The payload id (see RFC 3551, 3555, 4733, 4855) * - * Returns: (transfer none): A #MediaCodecInfo, if found + * Returns: (transfer none): A #MediaCodecInfo, if found. + * You should check if the codec is available on your system before + * trying to use it with media_codec_available_in_gst() */ MediaCodecInfo * media_codec_by_payload_id (guint payload_id)