[cogl/cogl-1.16] cogl-gst: move initialization code so CoglGstVideoSink can be subclassed



commit 6cc9074cfb3644153bde6b733e57f25636ca2a9e
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Tue Jul 9 14:08:04 2013 +0100

    cogl-gst: move initialization code so CoglGstVideoSink can be subclassed
    
    Reviewed-by: Robert Bragg <robert linux intel com>
    (cherry picked from commit 2f6068cb6783edf6e05d6e55e9700e22f31cb233)

 cogl-gst/cogl-gst-video-sink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl-gst/cogl-gst-video-sink.c b/cogl-gst/cogl-gst-video-sink.c
index 22326e5..65ecf43 100644
--- a/cogl-gst/cogl-gst-video-sink.c
+++ b/cogl-gst/cogl-gst-video-sink.c
@@ -1066,6 +1066,8 @@ cogl_gst_video_sink_init (CoglGstVideoSink *sink)
   sink->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (sink,
                                                    COGL_GST_TYPE_VIDEO_SINK,
                                                    CoglGstVideoSinkPrivate);
+  priv->custom_start = 0;
+  priv->default_sample = TRUE;
 }
 
 static GstFlowReturn
@@ -1274,8 +1276,6 @@ cogl_gst_video_sink_new (CoglContext *ctx)
 {
   CoglGstVideoSink *sink = g_object_new (COGL_GST_TYPE_VIDEO_SINK, NULL);
   cogl_gst_video_sink_set_context (sink, ctx);
-  sink->priv->custom_start = 0;
-  sink->priv->default_sample = TRUE;
 
   return sink;
 }


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