From 8dfbb6d5db069cd31e5c5223b0dee5841b1845fe Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 6 Jul 2011 10:31:01 +0100 Subject: CallWindow: keep the aspect ratio of the remote video --- src/empathy-call-window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index a7d177ac2..07a8404f9 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -622,6 +622,9 @@ create_video_output_widget (EmpathyCallWindow *self) priv->video_output = clutter_texture_new (); + clutter_texture_set_keep_aspect_ratio (CLUTTER_TEXTURE (priv->video_output), + TRUE); + priv->video_output_sink = clutter_gst_video_sink_new ( CLUTTER_TEXTURE (priv->video_output)); @@ -1006,7 +1009,6 @@ create_pipeline (EmpathyCallWindow *self) g_object_unref (bus); } - static void empathy_call_window_init (EmpathyCallWindow *self) { @@ -1083,8 +1085,8 @@ empathy_call_window_init (EmpathyCallWindow *self) gtk_paned_pack1 (GTK_PANED (priv->pane), priv->content_hbox, TRUE, FALSE); /* avatar/video box */ - priv->video_layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_FILL, - CLUTTER_BIN_ALIGNMENT_FILL); + priv->video_layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_CENTER, + CLUTTER_BIN_ALIGNMENT_CENTER); priv->video_box = clutter_box_new (priv->video_layout); -- cgit v1.2.3