From 736aebc37e3fc04ca0bedb277793368da2a8485a Mon Sep 17 00:00:00 2001 From: Raluca Elena Podiuc Date: Wed, 13 Jul 2011 17:15:36 +0300 Subject: [PATCH] tests: camerabin2: fix name of 'image-done' bus message Use the correct bus message for camerabin2 image done and removes check that is no longer needed for these tests. --- tests/check/elements/camerabin2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/check/elements/camerabin2.c b/tests/check/elements/camerabin2.c index 1016a0c..5277b61 100644 --- a/tests/check/elements/camerabin2.c +++ b/tests/check/elements/camerabin2.c @@ -258,11 +258,8 @@ capture_bus_cb (GstBus * bus, GstMessage * message, gpointer data) break; default: st = gst_message_get_structure (message); - if (st && gst_structure_has_name (st, "image-captured")) { - gboolean ready = FALSE; + if (st && gst_structure_has_name (st, "image-done")) { GST_INFO ("image captured"); - g_object_get (camera, "ready-for-capture", &ready, NULL); - fail_if (!ready, "not ready for capture"); } else if (st && gst_structure_has_name (st, GST_BASE_CAMERA_SRC_PREVIEW_MESSAGE_NAME)) { GstBuffer *buf; -- 2.7.4