[telepathy-stream-engine/master] Error out stream if the stream-engine wrapper can not be created
Olivier Crête
olivier.crete at collabora.co.uk
Thu May 14 15:44:28 PDT 2009
---
src/tp-stream-engine.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/tp-stream-engine.c b/src/tp-stream-engine.c
index 2d19cdc..e08f2a3 100644
--- a/src/tp-stream-engine.c
+++ b/src/tp-stream-engine.c
@@ -600,6 +600,8 @@ channel_stream_created (TfChannel *chan G_GNUC_UNUSED,
if (!audiostream)
{
+ tf_stream_error (stream, TP_MEDIA_STREAM_ERROR_UNKNOWN,
+ "Could not create audio stream");
g_warning ("Could not create audio stream: %s", error->message);
return;
}
@@ -619,6 +621,8 @@ channel_stream_created (TfChannel *chan G_GNUC_UNUSED,
if (!videostream)
{
g_warning ("Could not create video stream: %s", error->message);
+ tf_stream_error (stream, TP_MEDIA_STREAM_ERROR_UNKNOWN,
+ "Could not create video stream");
gst_element_release_request_pad (self->priv->videotee, pad);
return;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list