[farsight2/master] Validate the codec configurations
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:55 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index be160ff..923c8cf 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -259,6 +259,8 @@ fs_rtp_session_init (FsRtpSession *self)
g_free, g_object_unref);
self->priv->mutex = g_mutex_new ();
+
+ self->priv->media_type = FS_MEDIA_TYPE_LAST + 1;
}
static gboolean
@@ -463,6 +465,12 @@ fs_rtp_session_set_property (GObject *object,
break;
case PROP_LOCAL_CODECS_CONFIG:
self->priv->local_codecs_configuration = g_value_get_boxed (value);
+ if (self->priv->media_type <= FS_MEDIA_TYPE_LAST &&
+ self->priv->blueprints)
+ self->priv->local_codecs_configuration =
+ validate_codecs_configuration (
+ self->priv->media_type, self->priv->blueprints,
+ self->priv->local_codecs_configuration);
break;
case PROP_CONFERENCE:
self->priv->conference = g_value_get_object (value);
@@ -506,6 +514,9 @@ fs_rtp_session_constructed (GObject *object)
return;
}
+ self->priv->local_codecs_configuration = validate_codecs_configuration (
+ self->priv->media_type, self->priv->blueprints,
+ self->priv->local_codecs_configuration);
tmp = g_strdup_printf ("valve_send_%d", self->id);
valve = gst_element_factory_make ("fsvalve", tmp);
--
1.5.6.5
More information about the farsight-commits
mailing list