[cheese/three-point-oh] Fixed the valve issues, made them async
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh] Fixed the valve issues, made them async
- Date: Thu, 8 Jul 2010 18:52:27 +0000 (UTC)
commit a1e2c53c5e76e0b13e69080f132df4eb3153fd7d
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date: Thu Jul 8 23:17:10 2010 +0530
Fixed the valve issues, made them async
libcheese/cheese-camera.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 718c877..b474114 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -427,6 +427,7 @@ cheese_camera_create_video_display_bin (CheeseCamera *camera, GError **error)
{
cheese_camera_set_error_element_not_found (error, "cluttervideosink");
}
+ g_object_set (G_OBJECT (priv->effects_valve), "async", FALSE, NULL);
if (error != NULL && *error != NULL)
return FALSE;
@@ -788,7 +789,7 @@ void
cheese_camera_toggle_effects_pipeline (CheeseCamera *camera, gboolean active)
{
CheeseCameraPrivate *priv = CHEESE_CAMERA_GET_PRIVATE (camera);
-
+
if (active)
{
g_object_set (G_OBJECT (priv->effects_valve), "drop", FALSE, NULL);
@@ -813,13 +814,14 @@ cheese_camera_connect_effect_texture (CheeseCamera *camera, CheeseEffect *effect
gboolean is_playing;
is_playing = priv->pipeline_is_playing;
-
+
cheese_camera_stop (camera);
display_queue = gst_element_factory_make ("queue", NULL);
effect_filter = cheese_camera_element_from_effect (camera, effect);
display_element = clutter_gst_video_sink_new (texture);
+ g_object_set (G_OBJECT (display_element), "async", FALSE, NULL);
gst_bin_add_many (GST_BIN (priv->pipeline), effect_filter, display_queue, display_element, NULL);
ok = gst_element_link_many (priv->effects_tee, effect_filter, display_queue, display_element, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]