[clutter-gst] sink: Disable slicing when creating the texture



commit d424509377fe60d7b58b45fa812e3bc55f4da928
Author: Damien Lespiau <damien lespiau intel com>
Date:   Mon Nov 7 16:14:52 2011 +0000

    sink: Disable slicing when creating the texture
    
    We want to ensure the underlying texture is not a sliced one.

 clutter-gst/clutter-gst-video-sink.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index b96a975..ec1fa16 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -537,7 +537,9 @@ clutter_gst_source_dispatch (GSource     *source,
         if (!priv->texture)
           {
             ClutterActor *stage = clutter_stage_get_default ();
-            ClutterActor *actor = clutter_texture_new ();
+            ClutterActor *actor = g_object_new (CLUTTER_TYPE_TEXTURE,
+                                                "disable-slicing", TRUE,
+                                                NULL);
 
             priv->texture = CLUTTER_TEXTURE (actor);
             clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]