diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2010-12-07 16:22:56 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2010-12-07 16:22:56 +0000 |
commit | 77dca54a25c684c1ce1579b7bfc2b2e61a041d86 (patch) | |
tree | 29889708d49d60c1892498aba6b1db562d371e3e | |
parent | 9afcf14ac3d84370390f3f92006ef3e2ed60165a (diff) |
When EOS has been received, it's time to restore the idle state to FALSE
so the next paint will use the idle material and not the last frame.
-rw-r--r-- | clutter-gst/clutter-gst-video-texture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c index 0754dd3..47b0f58 100644 --- a/clutter-gst/clutter-gst-video-texture.c +++ b/clutter-gst/clutter-gst-video-texture.c @@ -1143,6 +1143,10 @@ bus_message_eos_cb (GstBus *bus, g_signal_emit_by_name (video_texture, "eos"); + /* restore the idle material so we don't just display the last frame */ + priv->is_idle = TRUE; + clutter_actor_queue_redraw (CLUTTER_ACTOR (video_texture)); + gst_element_set_state(priv->pipeline, GST_STATE_NULL); } |