[pinpoint] clutter: Wait to know the video size before computing it's final size
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] clutter: Wait to know the video size before computing it's final size
- Date: Sat, 6 Aug 2011 07:55:40 +0000 (UTC)
commit c26cab456ce7aeeb43a3ddb2571f709369b8048d
Author: Damien Lespiau <damien lespiau intel com>
Date: Sat Aug 6 06:53:27 2011 +0100
clutter: Wait to know the video size before computing it's final size
Instead of hardcoding its size to 400x300 and thus its aspect ratio to
4/3.
pp-clutter.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pp-clutter.c b/pp-clutter.c
index 07b3cd7..dd3d01d 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -1075,8 +1075,9 @@ clutter_renderer_make_point (PinPointRenderer *pp_renderer,
#ifdef USE_CLUTTER_GST
data->background = clutter_gst_video_texture_new ();
clutter_media_set_filename (CLUTTER_MEDIA (data->background), file);
- /* should pre-roll the video and set the size */
- clutter_actor_set_size (data->background, 400, 300);
+ g_signal_connect (CLUTTER_TEXTURE (data->background),
+ "size-change",
+ G_CALLBACK (on_size_changed), renderer);
ret = TRUE;
#endif
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]