summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-16 11:57:16 +0200
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-16 11:59:11 +0200
commita6e191e09c7ce407c9e2280ba244ae9faa4637c9 (patch)
treeb7e3b30125c1887cf39ecce3aef2bce7bc6979f1 /gst
parentc7d712a93247d07c32591d2006cb8f1185a0b1c0 (diff)
Avoid infinite loop when vaapi_create_display fails
Which might be the case when using, for example, xvfb.
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapipluginutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
index 9ec96a70..ed2f3249 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;