mirror of https://github.com/mpv-player/mpv
parent
c0077ac936
commit
c15697477f
|
@ -276,8 +276,10 @@ struct vo *init_best_video_out(struct mpv_global *global, struct vo_extra *ex)
|
||||||
autoprobe:
|
autoprobe:
|
||||||
// now try the rest...
|
// now try the rest...
|
||||||
for (int i = 0; video_out_drivers[i]; i++) {
|
for (int i = 0; video_out_drivers[i]; i++) {
|
||||||
char *name = (char *)video_out_drivers[i]->name;
|
const struct vo_driver *driver = video_out_drivers[i];
|
||||||
struct vo *vo = vo_create(true, global, ex, name, NULL);
|
if (driver == &video_out_null)
|
||||||
|
break;
|
||||||
|
struct vo *vo = vo_create(true, global, ex, (char *)driver->name, NULL);
|
||||||
if (vo)
|
if (vo)
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue