mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +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,6 +784,7 @@ GST_START_TEST (test_multiple_image_captures)
|
|||
|
||||
msg = wait_for_element_message (camera, "image-done", GST_CLOCK_TIME_NONE);
|
||||
fail_unless (msg != NULL);
|
||||
if (msg)
|
||||
gst_message_unref (msg);
|
||||
|
||||
check_preview_image (camera, image_filename, i);
|
||||
|
|
Loading…
Reference in a new issue