aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-31 18:25:19 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-01 16:15:40 +0800
commit764a5d2e90664a02b0d8e33dd5ce41a388de87b9 (patch)
tree43f8ff23313ead29bb53cef36522f8219c5ac1f5
parentfeab20693e67e58701010c2a4613d8345d7fedcf (diff)
downloadgsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar.gz
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar.bz2
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar.lz
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar.xz
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.tar.zst
gsoc2013-empathy-764a5d2e90664a02b0d8e33dd5ce41a388de87b9.zip
stop using gst_bin_add_many and gst_element_link_many
-rw-r--r--src/empathy-call-window.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3ed346fe5..9c83437ce 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -669,10 +669,36 @@ add_video_preview_to_pipeline (EmpathyCallWindow *self)
preview = empathy_video_widget_get_element (
EMPATHY_VIDEO_WIDGET (priv->video_preview));
- gst_bin_add_many (GST_BIN (priv->pipeline), priv->video_input,
- priv->video_tee, preview, NULL);
- gst_element_link_many (priv->video_input, priv->video_tee,
- preview, NULL);
+
+ if (!gst_bin_add (GST_BIN (priv->pipeline), priv->video_input))
+ {
+ g_warning ("Could not add video input to pipeline");
+ return;
+ }
+
+ if (!gst_bin_add (GST_BIN (priv->pipeline), priv->video_tee))
+ {
+ g_warning ("Could not add video tee to pipeline");
+ return;
+ }
+
+ if (!gst_bin_add (GST_BIN (priv->pipeline), preview))
+ {
+ g_warning ("Could not add video preview to pipeline");
+ return;
+ }
+
+ if (!gst_element_link (priv->video_input, priv->video_tee))
+ {
+ g_warning ("Could not link video input to video tee");
+ return;
+ }
+
+ if (!gst_element_link (priv->video_tee, preview))
+ {
+ g_warning ("Could not link video tee to video preview");
+ return;
+ }
}
static void