From 6cc9074cfb3644153bde6b733e57f25636ca2a9e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 9 Jul 2013 14:08:04 +0100 Subject: cogl-gst: move initialization code so CoglGstVideoSink can be subclassed Reviewed-by: Robert Bragg (cherry picked from commit 2f6068cb6783edf6e05d6e55e9700e22f31cb233) --- cogl-gst/cogl-gst-video-sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl-gst/cogl-gst-video-sink.c b/cogl-gst/cogl-gst-video-sink.c index 22326e58..65ecf438 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; } -- cgit v1.2.1