[farsight2/master] Make error on no local-codecs-assocs in constructor more exact

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:22:36 PST 2008


---
 gst/fsrtpconference/fs-rtp-session.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 0a832e6..7230d27 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -638,9 +638,8 @@ fs_rtp_session_constructed (GObject *object)
 
   if (!self->priv->local_codec_associations) {
     self->priv->construction_error = g_error_new (FS_ERROR,
-      FS_ERROR_INVALID_ARGUMENTS,
-      "The passed codec preferences does not contain enough parameters to"
-        "use at least one codec or disables them all");
+      FS_ERROR_INTERNAL,
+      "No codecs found for the media type of this session");
     return;
   }
 
-- 
1.5.6.5




More information about the farsight-commits mailing list