[farsight2/master] Add missing GError setting
Olivier Crête
olivier.crete at collabora.co.uk
Wed Feb 18 13:05:07 PST 2009
---
gst/fsrtpconference/fs-rtp-session.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index fe5e091..2889860 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -3382,6 +3382,8 @@ fs_rtp_session_add_send_codec_bin_unlock (FsRtpSession *session,
if (!g_value_get_boolean (&link_rv))
{
+ g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
+ "Could not link main pad of codec bin for pt %d", codec->id);
gst_iterator_free (iter);
goto error;
}
@@ -3401,7 +3403,11 @@ fs_rtp_session_add_send_codec_bin_unlock (FsRtpSession *session,
gst_iterator_free (iter);
if (!g_value_get_boolean (&link_rv))
+ {
+ g_set_error (error, FS_ERROR, FS_ERROR_CONSTRUCTION,
+ "Could not link all other pads of codec bin for pt %d", codec->id);
goto error;
+ }
gst_element_set_locked_state (codecbin, FALSE);
--
1.5.6.5
More information about the farsight-commits
mailing list