From a6e191e09c7ce407c9e2280ba244ae9faa4637c9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 16 Oct 2017 11:57:16 +0200 Subject: [PATCH] Avoid infinite loop when vaapi_create_display fails Which might be the case when using, for example, xvfb. --- gst/vaapi/gstvaapipluginutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index 9ec96a70f3..ed2f32494e 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -810,7 +810,7 @@ gst_vaapi_create_test_display (void) #endif }; - for (i = 0; G_N_ELEMENTS (test_display_map); i++) { + for (i = 0; i < G_N_ELEMENTS (test_display_map); i++) { display = gst_vaapi_create_display (test_display_map[i], NULL); if (display) break;