mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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.
This commit is contained in:
parent
01cf66b642
commit
736aebc37e
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue