From f0e992ebe6c9bba79bf5a7b5b284a23639930f67 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 9 Mar 2009 18:23:52 +0000 Subject: First connect to the sink pad, then start playing Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2650 --- src/empathy-call-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 08f85d0c5..a7759e7ef 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -929,10 +929,11 @@ empathy_call_window_sink_added_cb (EmpathyCallHandler *handler, { case TP_MEDIA_STREAM_TYPE_AUDIO: gst_bin_add (GST_BIN (priv->pipeline), priv->audio_input); - gst_element_set_state (priv->audio_input, GST_STATE_PLAYING); pad = gst_element_get_static_pad (priv->audio_input, "src"); gst_pad_link (pad, sink); + + gst_element_set_state (priv->audio_input, GST_STATE_PLAYING); break; case TP_MEDIA_STREAM_TYPE_VIDEO: if (priv->video_input != NULL) -- cgit v1.2.3