summaryrefslogtreecommitdiff
path: root/clutter-gst/clutter-gst-video-sink.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-11-07 15:28:44 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2011-11-07 15:35:00 +0000
commitb054873dd2e1871d84386f9a8bcb1bfdd14c7c3a (patch)
tree3e99f2cca4680ff1b1ea7e6bf9a45cdbb03cfe5c /clutter-gst/clutter-gst-video-sink.c
parenta7e2c3e5f4befdf9548f03297e9579759e8c2c35 (diff)
downloadclutter-gst-b054873dd2e1871d84386f9a8bcb1bfdd14c7c3a.tar.gz
sink: Set the no clear hint on the stage
When drawing to the stage we always take the full stage, which means clearing the stage with the background color can be skipped when we can. Setting the no-clear hint serves that purpose.
Diffstat (limited to 'clutter-gst/clutter-gst-video-sink.c')
-rw-r--r--clutter-gst/clutter-gst-video-sink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 6f90a27..c0bdb18 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -538,6 +538,7 @@ clutter_gst_source_dispatch (GSource *source,
priv->texture = CLUTTER_TEXTURE (actor);
clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), actor);
+ clutter_stage_set_no_clear_hint (CLUTTER_STAGE (stage), TRUE);
g_signal_connect (stage, "delete-event",
G_CALLBACK (on_stage_destroyed), gst_source);