diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2010-06-08 16:40:47 +0100 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2010-06-08 16:40:47 +0100 |
commit | 1b2362e2c52839447cc8143ec70878e662e78b0b (patch) | |
tree | 828791b852176611184e739fc6d8d3ecccb4c641 | |
parent | feacbd4160af7709275841521150552441168407 (diff) | |
download | clutter-gst-1b2362e2c52839447cc8143ec70878e662e78b0b.tar.gz |
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.
-rw-r--r-- | clutter-gst/clutter-gst-video-texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |