[farsight2/master] Remove useless custom negotiation function
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:54 PST 2008
---
gst/fsrtpconference/fs-rtp-specific-nego.c | 53 +++-------------------------
1 files changed, 5 insertions(+), 48 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-specific-nego.c b/gst/fsrtpconference/fs-rtp-specific-nego.c
index bce0b14..0de9896 100644
--- a/gst/fsrtpconference/fs-rtp-specific-nego.c
+++ b/gst/fsrtpconference/fs-rtp-specific-nego.c
@@ -51,28 +51,25 @@ struct SdpCompatCheck {
static FsCodec *
+sdp_is_compat_default (FsCodec *local_codec, FsCodec *remote_codec);
+
+static FsCodec *
sdp_is_compat_ilbc (FsCodec *local_codec, FsCodec *remote_codec);
static FsCodec *
sdp_is_compat_h263_1998 (FsCodec *local_codec, FsCodec *remote_codec);
-static FsCodec *
-sdp_is_compat_theora_vorbis (FsCodec *local_codec, FsCodec *remote_codec);
static struct SdpCompatCheck sdp_compat_checks[] = {
{FS_MEDIA_TYPE_AUDIO, "iLBC", sdp_is_compat_ilbc,
{NULL}},
{FS_MEDIA_TYPE_VIDEO, "H263-1998", sdp_is_compat_h263_1998,
{NULL}},
- {FS_MEDIA_TYPE_AUDIO, "VORBIS", sdp_is_compat_theora_vorbis,
+ {FS_MEDIA_TYPE_AUDIO, "VORBIS", sdp_is_compat_default,
{"configuration", NULL}},
- {FS_MEDIA_TYPE_VIDEO, "THEORA", sdp_is_compat_theora_vorbis,
+ {FS_MEDIA_TYPE_VIDEO, "THEORA", sdp_is_compat_default,
{"configuration", NULL}},
{0, NULL, NULL}
};
-static FsCodec *
-sdp_is_compat_default (FsCodec *local_codec, FsCodec *remote_codec);
-
-
gboolean
codec_needs_config (FsCodec *codec)
{
@@ -386,43 +383,3 @@ sdp_is_compat_h263_1998 (FsCodec *local_codec, FsCodec *remote_codec)
negotiated_codec = fs_codec_copy (local_codec);
return negotiated_codec;
}
-
-
-static FsCodec *
-sdp_is_compat_theora_vorbis (FsCodec *local_codec, FsCodec *remote_codec)
-{
- FsCodec *negotiated_codec = NULL;
- FsCodec *tmp_remote_codec;
- GList *item = NULL;
-
- GST_DEBUG ("Using Theora/Vorbis negotiation function");
-
- tmp_remote_codec = fs_codec_copy (remote_codec);
-
- for (item = tmp_remote_codec->optional_params;
- item;
- item = g_list_next (item))
- {
- FsCodecParameter *param = item->data;
-
- if (!g_ascii_strcasecmp ("configuration", param->name))
- {
- GList *nextitem = item->next;
-
- tmp_remote_codec->optional_params = g_list_delete_link (
- tmp_remote_codec->optional_params, item);
-
- tmp_remote_codec->config_params = g_list_append (
- tmp_remote_codec->config_params, param);
-
- item = nextitem;
- }
- }
-
- negotiated_codec = sdp_is_compat_default (local_codec, tmp_remote_codec);
-
- fs_codec_destroy (tmp_remote_codec);
-
- return negotiated_codec;
-}
-
--
1.5.6.5
More information about the farsight-commits
mailing list