[clutter-gst/clutter-gst-3.0] autovideosink: only init clutter when switching to read start
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] autovideosink: only init clutter when switching to read start
- Date: Wed, 29 Mar 2017 21:25:01 +0000 (UTC)
commit 3a45edf3585bd0b8199e08e867314a003d746549
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date: Tue Mar 28 00:24:43 2017 +0100
autovideosink: only init clutter when switching to read start
https://bugzilla.gnome.org/show_bug.cgi?id=780193
clutter-gst/clutter-gst-auto-video-sink.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-auto-video-sink.c b/clutter-gst/clutter-gst-auto-video-sink.c
index 1197b59..35c80cc 100644
--- a/clutter-gst/clutter-gst-auto-video-sink.c
+++ b/clutter-gst/clutter-gst-auto-video-sink.c
@@ -79,8 +79,6 @@ clutter_gst_auto_video_sink_class_init (ClutterGstAutoVideoSink3Class *klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
- _clutter_init ();
-
GST_DEBUG_CATEGORY_INIT (clutter_gst_auto_video_sink_debug,
"clutterautovideosink",
0,
@@ -163,9 +161,6 @@ clutter_gst_auto_video_sink_reset (ClutterGstAutoVideoSink3 *sink)
{
GstPad *targetpad;
- if (_clutter_initialized != CLUTTER_INIT_SUCCESS)
- return;
-
/* Remove any existing element */
clutter_gst_auto_video_sink_clear_kid (sink);
@@ -254,7 +249,7 @@ clutter_gst_auto_video_sink_change_state (GstElement *element,
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
if (_clutter_initialized != CLUTTER_INIT_SUCCESS)
- return GST_STATE_CHANGE_FAILURE;
+ _clutter_init ();
if (!sink->content)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]