mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
Avoid infinite loop when vaapi_create_display fails
Which might be the case when using, for example, xvfb.
This commit is contained in:
parent
c7d712a932
commit
a6e191e09c
1 changed files with 1 additions and 1 deletions
|
@ -810,7 +810,7 @@ gst_vaapi_create_test_display (void)
|
||||||
#endif
|
#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);
|
display = gst_vaapi_create_display (test_display_map[i], NULL);
|
||||||
if (display)
|
if (display)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue