[Cogl] [PATCH 2/2] cogl-gst: prevent crash when renderer is not ready

Lionel Landwerlin llandwerlin at gmail.com
Mon Jul 8 06:41:39 PDT 2013


---
 cogl-gst/cogl-gst-video-sink.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cogl-gst/cogl-gst-video-sink.c b/cogl-gst/cogl-gst-video-sink.c
index 22326e5..88fbb51 100644
--- a/cogl-gst/cogl-gst-video-sink.c
+++ b/cogl-gst/cogl-gst-video-sink.c
@@ -381,6 +381,9 @@ cogl_gst_video_sink_get_pipeline (CoglGstVideoSink *vt)
 
   priv = vt->priv;
 
+  if (priv->renderer == NULL)
+    return NULL;
+
   if (priv->pipeline == NULL)
     {
       priv->pipeline = cogl_pipeline_new (priv->ctx);
-- 
1.8.3.2



More information about the Cogl mailing list