diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c index b68ec51b53..90e010a442 100644 --- a/tests/examples/camerabin2/gst-camerabin2-test.c +++ b/tests/examples/camerabin2/gst-camerabin2-test.c @@ -723,8 +723,7 @@ setup_pipeline (void) if (ipp) { g_object_set (camerabin, "image-filter", ipp, NULL); g_object_unref (ipp); - } - else + } else GST_WARNING ("Could not create ipp elements"); } @@ -1077,6 +1076,9 @@ print_performance_data (void) i++; } + if (i == 0) + return; + if (i > 1) shot_to_shot = avg.shot_to_shot / (i - 1); else