summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2016-02-12 22:41:58 +0000
committerLionel Landwerlin <llandwerlin@gmail.com>2016-02-12 22:41:58 +0000
commit9c748166203ac36c7ef5f53febd3de8d8fc62159 (patch)
treecebf6fee62a58244e91741c69f4dd982e010afbf
parent60d1cb1895ed09267bfc3dc3cbbcbe4730d54266 (diff)
downloadclutter-gst-9c748166203ac36c7ef5f53febd3de8d8fc62159.tar.gz
autovideosink: make background black by default
-rw-r--r--clutter-gst/clutter-gst-auto-video-sink.c5
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 ();