From 1b2362e2c52839447cc8143ec70878e662e78b0b Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 8 Jun 2010 16:40:47 +0100 Subject: video-texture: Fix the logic to get out of the idle mode Of course we should wait until we are playing (hapilly ignoring the fact we can preroll) to get out of the idle mode and start displaying frames instead of the idle material. --- clutter-gst/clutter-gst-video-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c index d4e3122..de92506 100644 --- a/clutter-gst/clutter-gst-video-texture.c +++ b/clutter-gst/clutter-gst-video-texture.c @@ -934,7 +934,7 @@ bus_message_state_change_cb (GstBus *bus, /* is_idle controls the drawing with the idle material */ if (new_state == GST_STATE_NULL) priv->is_idle = TRUE; - else if (old_state == GST_STATE_NULL) + else if (new_state == GST_STATE_PLAYING) priv->is_idle = FALSE; } -- cgit v1.2.1