diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-03-07 07:27:56 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-29 23:36:24 +0800 |
commit | b860ad599ff905a735ca00f4f256c43411c09a85 (patch) | |
tree | fdf90f33db97791c39ac527e4d68e383bb9bc475 /libempathy/empathy-call-handler.c | |
parent | fc5be44316c04af418f131f6be0d9e4d9dda2e39 (diff) | |
download | gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar.gz gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar.bz2 gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar.lz gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar.xz gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.tar.zst gsoc2013-empathy-b860ad599ff905a735ca00f4f256c43411c09a85.zip |
Return a telepathy error if the source can't be added
Diffstat (limited to 'libempathy/empathy-call-handler.c')
-rw-r--r-- | libempathy/empathy-call-handler.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index 9cfee1d86..31b66f3f4 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -238,8 +238,8 @@ empathy_call_handler_class_init (EmpathyCallHandlerClass *klass) signals[SINK_PAD_ADDED] = g_signal_new ("sink-pad-added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, - _empathy_marshal_VOID__OBJECT_UINT, - G_TYPE_NONE, + _empathy_marshal_BOOLEAN__OBJECT_UINT, + G_TYPE_BOOLEAN, 2, GST_TYPE_PAD, G_TYPE_UINT); signals[REQUEST_RESOURCE] = @@ -375,6 +375,7 @@ empathy_call_handler_tf_channel_stream_created_cb (TfChannel *tfchannel, { guint media_type; GstPad *spad; + gboolean retval; g_signal_connect (stream, "src-pad-added", G_CALLBACK (empathy_call_handler_tf_stream_src_pad_added_cb), handler); @@ -388,7 +389,11 @@ empathy_call_handler_tf_channel_stream_created_cb (TfChannel *tfchannel, "sink-pad", &spad, NULL); g_signal_emit (G_OBJECT (handler), signals[SINK_PAD_ADDED], 0, - spad, media_type); + spad, media_type, &retval); + + if (!retval) + tf_stream_error (stream, TP_MEDIA_STREAM_ERROR_MEDIA_ERROR, + "Could not link source"); gst_object_unref (spad); } |