[clutter-gst] video-texture: Put the object in idle mode on error
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] video-texture: Put the object in idle mode on error
- Date: Tue, 5 Apr 2011 17:54:55 +0000 (UTC)
commit 039ba63d0ce19865e75d46ef7a14111d204833e2
Author: Damien Lespiau <damien lespiau intel com>
Date: Tue Apr 5 18:52:07 2011 +0100
video-texture: Put the object in idle mode on error
Don't display the last frame on error, but the idle material instead.
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 26aa84e..f403b22 100644
--- a/clutter-gst/clutter-gst-video-texture.c
+++ b/clutter-gst/clutter-gst-video-texture.c
@@ -1384,6 +1384,10 @@ bus_message_error_cb (GstBus *bus,
gst_message_parse_error (message, &error, NULL);
+ /* 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));
+
g_signal_emit_by_name (video_texture, "error", error);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]