cogl-gst: move initialization code so CoglGstVideoSink can be subclassed

Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit 2f6068cb6783edf6e05d6e55e9700e22f31cb233)
This commit is contained in:
Lionel Landwerlin 2013-07-09 14:08:04 +01:00 committed by Robert Bragg
parent 3d9eaef3ac
commit 6cc9074cfb

View File

@ -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;
}