summaryrefslogtreecommitdiff
path: root/gst/fsrtpconference/fs-rtp-substream.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-25 19:50:05 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-10-11 15:36:05 -0400
commit93491d1e99f3362023800094717b74ce546920dd (patch)
treee9a84168f05927ef4ceb442ac5f77e4179ebe392 /gst/fsrtpconference/fs-rtp-substream.c
parentcee1670b7a34e9de31bedbe5b7e4b7172b3225e2 (diff)
downloadfarstream-93491d1e99f3362023800094717b74ce546920dd.tar.gz
stream: Remove debug-msg from error signal
Diffstat (limited to 'gst/fsrtpconference/fs-rtp-substream.c')
-rw-r--r--gst/fsrtpconference/fs-rtp-substream.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c
index fadafd94..3d63a3fd 100644
--- a/gst/fsrtpconference/fs-rtp-substream.c
+++ b/gst/fsrtpconference/fs-rtp-substream.c
@@ -1386,17 +1386,23 @@ _rtpbin_pad_blocked_callback (GstPad *pad, gboolean blocked, gpointer user_data)
error:
{
- gchar *str = g_strdup_printf ("Could not add the new recv codec bin for"
- " ssrc %u and payload type %d to the state NULL", substream->ssrc,
- substream->pt);
-
if (substream->priv->stream)
+ {
+ g_prefix_error (&error, "Could not add the new recv codec bin for"
+ " ssrc %u and payload type %d to the state NULL", substream->ssrc,
+ substream->pt);
fs_stream_emit_error (FS_STREAM (substream->priv->stream),
- FS_ERROR_CONSTRUCTION, str, error->message);
+ FS_ERROR_CONSTRUCTION, error->message);
+ }
else
+ {
+ gchar *str = g_strdup_printf ("Could not add the new recv codec bin for"
+ " ssrc %u and payload type %d to the state NULL", substream->ssrc,
+ substream->pt);
fs_session_emit_error (FS_SESSION (substream->priv->session),
FS_ERROR_CONSTRUCTION, str, error->message);
- g_free (str);
+ g_free (str);
+ }
}
goto out;