aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-05-08 13:57:08 +0800
committerJavier Jardón <jjardon@gnome.org>2012-05-08 13:57:08 +0800
commit4a1c6a72d6899c5af90a51fb8d6ae27298d7742e (patch)
tree325d9fe61cbaf61e4218d7cc9f82b29a6f32c6e2 /src
parent9bc69fec76fb62000791b0b383ba15b508a7d7b6 (diff)
downloadgsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar.gz
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar.bz2
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar.lz
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar.xz
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.tar.zst
gsoc2013-empathy-4a1c6a72d6899c5af90a51fb8d6ae27298d7742e.zip
Use gst_object_ref_sink()
Instead call both gst_object_ref() and gst_object_sink() https://bugzilla.gnome.org/show_bug.cgi?id=675590
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c9
-rw-r--r--src/empathy-video-widget.c2
2 files changed, 4 insertions, 7 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 7ecac2806..02dcd6df6 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -423,8 +423,7 @@ create_video_input (EmpathyCallWindow *self)
g_assert (priv->video_input == NULL);
priv->video_input = empathy_video_src_new ();
- gst_object_ref (priv->video_input);
- gst_object_sink (priv->video_input);
+ gst_object_ref_sink (priv->video_input);
}
static gboolean
@@ -468,8 +467,7 @@ create_audio_input (EmpathyCallWindow *self)
g_assert (priv->audio_input == NULL);
priv->audio_input = empathy_audio_src_new ();
- gst_object_ref (priv->audio_input);
- gst_object_sink (priv->audio_input);
+ gst_object_ref_sink (priv->audio_input);
g_object_bind_property (priv->mic_button, "active",
priv->audio_input, "mute",
@@ -1333,8 +1331,7 @@ create_pipeline (EmpathyCallWindow *self)
priv->pipeline_playing = FALSE;
priv->video_tee = gst_element_factory_make ("tee", NULL);
- gst_object_ref (priv->video_tee);
- gst_object_sink (priv->video_tee);
+ gst_object_ref_sink (priv->video_tee);
gst_bin_add (GST_BIN (priv->pipeline), priv->video_tee);
diff --git a/src/empathy-video-widget.c b/src/empathy-video-widget.c
index 9cf31d9c1..d78b926ca 100644
--- a/src/empathy-video-widget.c
+++ b/src/empathy-video-widget.c
@@ -127,7 +127,7 @@ empathy_video_widget_constructed (GObject *object)
priv->videosink = gst_bin_new (NULL);
- gst_object_ref (priv->videosink);
+ gst_object_ref_sink (priv->videosink);
gst_object_sink (priv->videosink);
sink = gst_element_factory_make ("gconfvideosink", NULL);