mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
tests: camerabin: avoid warning if test is failing
In case the test fails the message won't be returned and it will lead to an assertion that might be misleading to those debugging the issue.
This commit is contained in:
parent
cfda1aafa3
commit
f5cf601638
1 changed files with 2 additions and 1 deletions
|
@ -784,7 +784,8 @@ GST_START_TEST (test_multiple_image_captures)
|
|||
|
||||
msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE);
|
||||
fail_unless (msg != NULL);
|
||||
gst_message_unref (msg);
|
||||
if (msg)
|
||||
gst_message_unref (msg);
|
||||
|
||||
check_preview_image (camera, image_filename, i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue