(input_overlay.c) Go through video_driver_get_ptr

This commit is contained in:
twinaphex 2015-11-23 13:24:20 +01:00
parent daedeced2c
commit ee733fcd0f

View File

@ -1034,7 +1034,6 @@ input_overlay_t *input_overlay_new(const char *path, bool enable,
float opacity, float scale_factor)
{
input_overlay_t *ol = (input_overlay_t*)calloc(1, sizeof(*ol));
driver_t *driver = driver_get_ptr();
if (!ol)
goto error;
@ -1052,7 +1051,7 @@ input_overlay_t *input_overlay_new(const char *path, bool enable,
goto error;
}
ol->iface_data = driver->video_data;
ol->iface_data = video_driver_get_ptr();
if (!ol->iface)
goto error;