[clutter-gst/clutter-gst-3.0] autovideosink: make background black by default



commit 9c748166203ac36c7ef5f53febd3de8d8fc62159
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Feb 12 22:41:58 2016 +0000

    autovideosink: make background black by default

 clutter-gst/clutter-gst-auto-video-sink.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-auto-video-sink.c b/clutter-gst/clutter-gst-auto-video-sink.c
index a09c5d4..1197b59 100644
--- a/clutter-gst/clutter-gst-auto-video-sink.c
+++ b/clutter-gst/clutter-gst-auto-video-sink.c
@@ -258,7 +258,10 @@ clutter_gst_auto_video_sink_change_state (GstElement     *element,
 
     if (!sink->content)
       {
-        ClutterActor *stage = clutter_stage_new ();
+        ClutterColor color = { 0, 0, 0, 0xff };
+        ClutterActor *stage = g_object_new (CLUTTER_TYPE_STAGE,
+                                            "background-color", &color,
+                                            NULL);
         ClutterActor *actor = clutter_actor_new ();
         sink->content = clutter_gst_aspectratio_new ();
 


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