[clutter-gst/clutter-gst-3.0] content: invalid rendering on content change



commit a71607b7dc2a0f27d53bf9c5b79d92e08819c6a4
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Nov 4 00:55:33 2016 +0000

    content: invalid rendering on content change
    
    Regardless of whether we have something to display, we need to invalidate
    the content on any change. Otherwise we miss the invalidation on the
    frame->no-frame transition and the previous will remain visible.

 clutter-gst/clutter-gst-content.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-content.c b/clutter-gst/clutter-gst-content.c
index 20db2c7..23ec2c7 100644
--- a/clutter-gst/clutter-gst-content.c
+++ b/clutter-gst/clutter-gst-content.c
@@ -186,9 +186,7 @@ _new_frame_from_pipeline (ClutterGstVideoSink *sink,
                           ClutterGstContent   *self)
 {
   update_frame (self, clutter_gst_video_sink_get_frame (sink));
-
-  if (CLUTTER_GST_CONTENT_GET_CLASS (self)->has_painting_content (self))
-    clutter_content_invalidate (CLUTTER_CONTENT (self));
+  clutter_content_invalidate (CLUTTER_CONTENT (self));
 }
 
 static void
@@ -196,9 +194,7 @@ _new_overlays_from_pipeline (ClutterGstVideoSink *sink,
                              ClutterGstContent   *self)
 {
   update_overlays (self, clutter_gst_video_sink_get_overlays (sink));
-
-  if (CLUTTER_GST_CONTENT_GET_CLASS (self)->has_painting_content (self))
-    clutter_content_invalidate (CLUTTER_CONTENT (self));
+  clutter_content_invalidate (CLUTTER_CONTENT (self));
 }
 
 static void
@@ -298,9 +294,7 @@ content_set_frame (ClutterGstContent *self,
     }
 
   update_frame (self, frame);
-
-  if (CLUTTER_GST_CONTENT_GET_CLASS (self)->has_painting_content (self))
-    clutter_content_invalidate (CLUTTER_CONTENT (self));
+  clutter_content_invalidate (CLUTTER_CONTENT (self));
 }
 
 static gboolean


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