summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 2b297869e4..b379d3fe1e 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -599,8 +599,7 @@ int guiGetEvent( int type,char * arg )
while ( video_out_drivers[i++] )
if ( video_out_drivers[i - 1]->control( VOCTRL_GUISUPPORT,NULL ) == VO_TRUE )
{
- const vo_info_t *info = video_out_drivers[i - 1]->get_info();
- gaddlist( &video_driver_list,(char *)info->short_name );
+ gaddlist( &video_driver_list,(char *)video_out_drivers[i - 1]->info->short_name );
break;
}
}
@@ -613,8 +612,7 @@ int guiGetEvent( int type,char * arg )
while ( video_out_drivers[i++] )
if ( video_out_drivers[i - 1]->control( VOCTRL_GUISUPPORT,NULL ) == VO_TRUE )
{
- const vo_info_t *info = video_out_drivers[i - 1]->get_info();
- if ( ( video_driver_list && !gstrcmp( video_driver_list[0],(char *)info->short_name ) )&&( video_out_drivers[i - 1]->control( VOCTRL_GUI_NOWINDOW,NULL ) == VO_TRUE ) )
+ if ( ( video_driver_list && !gstrcmp( video_driver_list[0],(char *)video_out_drivers[i - 1]->info->short_name ) )&&( video_out_drivers[i - 1]->control( VOCTRL_GUI_NOWINDOW,NULL ) == VO_TRUE ) )
{ guiIntfStruct.NoWindow=True; break; }
}
}