sip: media: rework codec negotiation
introduce `calls_sip_media_manager_get_capabilities ()` which takes a GList of MediaCodecInfo's as input to generate a SDP message. If using in an SDP answer we simply feed it a list of the common codecs as gathered from the SDP offer.
This commit is contained in:
committed by
Guido Gunther
parent
4eb07148cc
commit
c2bd6e9344
@@ -55,6 +55,17 @@ media_codec_by_name (const char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
MediaCodecInfo *
|
||||
media_codec_by_payload_id (guint payload_id)
|
||||
{
|
||||
for (guint i = 0; i < G_N_ELEMENTS (gst_codecs); i++) {
|
||||
if (payload_id == gst_codecs[i].payload_id)
|
||||
return &gst_codecs[i];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gchar *
|
||||
media_codec_get_gst_capabilities (MediaCodecInfo *codec)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user