[empathy] stop using gst_bin_add_many and gst_element_link_many
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] stop using gst_bin_add_many and gst_element_link_many
- Date: Thu, 1 Apr 2010 08:17:18 +0000 (UTC)
commit 764a5d2e90664a02b0d8e33dd5ce41a388de87b9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Mar 31 12:25:19 2010 +0200
stop using gst_bin_add_many and gst_element_link_many
src/empathy-call-window.c | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3ed346f..9c83437 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]