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:
parent
3d9eaef3ac
commit
6cc9074cfb
1 changed files with 2 additions and 2 deletions
|
@ -1066,6 +1066,8 @@ cogl_gst_video_sink_init (CoglGstVideoSink *sink)
|
||||||
sink->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (sink,
|
sink->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (sink,
|
||||||
COGL_GST_TYPE_VIDEO_SINK,
|
COGL_GST_TYPE_VIDEO_SINK,
|
||||||
CoglGstVideoSinkPrivate);
|
CoglGstVideoSinkPrivate);
|
||||||
|
priv->custom_start = 0;
|
||||||
|
priv->default_sample = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
|
@ -1274,8 +1276,6 @@ cogl_gst_video_sink_new (CoglContext *ctx)
|
||||||
{
|
{
|
||||||
CoglGstVideoSink *sink = g_object_new (COGL_GST_TYPE_VIDEO_SINK, NULL);
|
CoglGstVideoSink *sink = g_object_new (COGL_GST_TYPE_VIDEO_SINK, NULL);
|
||||||
cogl_gst_video_sink_set_context (sink, ctx);
|
cogl_gst_video_sink_set_context (sink, ctx);
|
||||||
sink->priv->custom_start = 0;
|
|
||||||
sink->priv->default_sample = TRUE;
|
|
||||||
|
|
||||||
return sink;
|
return sink;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue