[farsight2/master] Refuse any invalid codecs
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:53 PST 2008
---
gst/fsrtpconference/fs-rtp-discover-codecs.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
index 719151a..b0c45f8 100644
--- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
+++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
@@ -215,6 +215,12 @@ fs_rtp_blueprints_get (FsMediaType media_type, GError **error)
GList *send_list = NULL;
gboolean ret;
+ if (media_type > FS_MEDIA_TYPE_LAST)
+ {
+ g_set_error (error, FS_ERROR, FS_ERROR_INVALID_ARGUMENTS,
+ "Invalid media type given");
+ return NULL;
+ }
codecs_lists_ref[media_type]++;
--
1.5.6.5
More information about the farsight-commits
mailing list