[farsight2/master] Make sure the reception of unknown codecs is reported
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:58 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index ca10490..c86e548 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -1387,6 +1387,8 @@ fs_rtp_session_new_recv_pad (FsRtpSession *session, GstPad *new_pad,
}
} else {
if (error) {
+ /* Ignore errors the case where we receive buffers before the negotiatoon
+ happens */
if (error->code != FS_ERROR_INTERNAL)
fs_session_emit_error (FS_SESSION (session), error->code,
"Could not create a codec bin for the new pad", error->message);
@@ -1637,7 +1639,7 @@ fs_rtp_session_new_codec_bin (FsRtpSession *session, const gchar *name,
FS_RTP_SESSION_UNLOCK (session);
if (!ca) {
- g_set_error (error, FS_ERROR, FS_ERROR_INTERNAL,
+ g_set_error (error, FS_ERROR, FS_ERROR_UNKNOWN_CODEC,
"There is no negotiated codec with pt %d", pt);
return NULL;
}
--
1.5.6.5
More information about the farsight-commits
mailing list