1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 03:25:31 +00:00

media-codecs: Add codec availability check to public API

This will be useful for building a list of preferred audio codecs.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-11-25 03:31:44 +01:00
parent 7fe8a90d77
commit 27463212d9
2 changed files with 8 additions and 1 deletions

View file

@ -39,7 +39,13 @@ static MediaCodecInfo gst_codecs[] = {
};
static gboolean
/**
* media_codec_available_in_gst:
* @codec: A #MediaCodecInfo
*
* Returns: %TRUE if codec is available on your system, %FALSE otherwise
*/
gboolean
media_codec_available_in_gst (MediaCodecInfo *codec) {
gboolean available = FALSE;
GstRegistry *registry = gst_registry_get ();

View file

@ -44,6 +44,7 @@ typedef struct {
} MediaCodecInfo;
gboolean media_codec_available_in_gst (MediaCodecInfo *codec);
MediaCodecInfo* media_codec_by_name (const char *name);
MediaCodecInfo* media_codec_by_payload_id (uint payload_id);
gchar* media_codec_get_gst_capabilities (MediaCodecInfo *codec);