[clutter-gst/wip/overlays: 3/4] ClutterGstFrame: copy pipeline instead of taking ref



commit 9a6e8a294f9e075b773e93e34740a83fce463fe0
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sun Jun 1 01:07:51 2014 +0100

    ClutterGstFrame: copy pipeline instead of taking ref
    
    This is important if a video frame is painted in multiple actors with
    different opacities.

 clutter-gst/clutter-gst-types.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-types.c b/clutter-gst/clutter-gst-types.c
index 6818ad5..bdfd827 100644
--- a/clutter-gst/clutter-gst-types.c
+++ b/clutter-gst/clutter-gst-types.c
@@ -41,7 +41,7 @@ clutter_gst_frame_copy (gpointer data)
       ClutterGstFrame *frame = g_slice_dup (ClutterGstFrame, data);
 
       if (frame->pipeline != COGL_INVALID_HANDLE)
-        frame->pipeline = cogl_object_ref (frame->pipeline);
+        frame->pipeline = cogl_pipeline_copy (frame->pipeline);
 
       return frame;
     }


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