[clutter-gst/clutter-gst-3.0] video-sink: delay Cogl internal setup until start()



commit 84fc8c170be33dc3d6f320f06327e397172a83a3
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date:   Tue Mar 28 00:23:32 2017 +0100

    video-sink: delay Cogl internal setup until start()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780193

 clutter-gst/clutter-gst-video-sink.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 6281eb3..a572489 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -2140,9 +2140,6 @@ clutter_gst_video_sink_init (ClutterGstVideoSink *sink)
   priv->tableu = g_new0 (guint8, 256 * 256);
   priv->tablev = g_new0 (guint8, 256 * 256);
 
-  priv->ctx = clutter_gst_get_cogl_context ();
-  priv->renderers = clutter_gst_build_renderers_list (priv->ctx);
-  priv->caps = clutter_gst_build_caps (priv->renderers);
   priv->overlays = clutter_gst_overlays_new ();
 }
 
@@ -2245,6 +2242,10 @@ clutter_gst_video_sink_start (GstBaseSink *base_sink)
 
   GST_INFO_OBJECT (sink, "Start");
 
+  priv->ctx = clutter_gst_get_cogl_context ();
+  priv->renderers = clutter_gst_build_renderers_list (priv->ctx);
+  priv->caps = clutter_gst_build_caps (priv->renderers);
+
   priv->source = clutter_gst_source_new (sink);
   g_source_attach ((GSource *) priv->source, NULL);
   priv->flow_return = GST_FLOW_OK;


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