aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-06 17:31:01 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 16:46:23 +0800
commit8dfbb6d5db069cd31e5c5223b0dee5841b1845fe (patch)
tree2e614fe688bb5082a261daa3672dbe3e407ec8d4 /src
parent287973c0299353802f52b330c1050b03476e892d (diff)
downloadgsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar.gz
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar.bz2
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar.lz
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar.xz
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.tar.zst
gsoc2013-empathy-8dfbb6d5db069cd31e5c5223b0dee5841b1845fe.zip
CallWindow: keep the aspect ratio of the remote video
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c8
1 files 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);