diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-03 02:06:33 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-04-01 16:15:39 +0800 |
commit | 11bae3305bed3b10b5b1288ef589bff12d758bf2 (patch) | |
tree | de452db548b9dac44dbbeb657d56f36d3a220836 /src | |
parent | cbf57d8ce685d1c959f4c207157dd327155d636f (diff) | |
download | gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar.gz gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar.bz2 gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar.lz gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar.xz gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.tar.zst gsoc2013-empathy-11bae3305bed3b10b5b1288ef589bff12d758bf2.zip |
split create_video_output_widget out of create_pipeline
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 381646f1d..0594f0e36 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -591,11 +591,15 @@ empathy_call_window_create_audio_input (EmpathyCallWindow *self) } static void -create_video_output_widget (GstBus *bus, EmpathyCallWindow *self) +create_video_output_widget (EmpathyCallWindow *self) { EmpathyCallWindowPriv *priv = GET_PRIV (self); + GstBus *bus; g_assert (priv->video_output == NULL); + g_assert (priv->pipeline != NULL); + + bus = gst_pipeline_get_bus (GST_PIPELINE (priv->pipeline)); priv->video_output = empathy_video_widget_new (bus); gtk_box_pack_start (GTK_BOX (priv->remote_user_output_hbox), @@ -605,6 +609,8 @@ create_video_output_widget (GstBus *bus, EmpathyCallWindow *self) GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK); g_signal_connect (G_OBJECT (priv->video_output), "button-press-event", G_CALLBACK (empathy_call_window_video_button_press_cb), self); + + g_object_unref (bus); } static void @@ -922,8 +928,6 @@ create_pipeline (EmpathyCallWindow *self) priv->bus_message_source_id = gst_bus_add_watch (bus, empathy_call_window_bus_message, self); - create_video_output_widget (bus, self); - g_object_unref (bus); } @@ -1016,6 +1020,7 @@ empathy_call_window_init (EmpathyCallWindow *self) priv->self_user_output_hbox); create_pipeline (self); + create_video_output_widget (self); create_audio_input (self); create_audio_output (self); create_video_input (self); @@ -2699,6 +2704,7 @@ empathy_call_window_restart_call (EmpathyCallWindow *window) EmpathyCallWindowPriv *priv = GET_PRIV (window); create_pipeline (window); + create_video_output_widget (window); g_signal_connect (G_OBJECT (priv->audio_input_adj), "value-changed", G_CALLBACK (empathy_call_window_mic_volume_changed_cb), window); |