Skip to content
Snippets Groups Projects
Commit 39618439 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

lua: osd: avoid adding an empty array element


Co-authored-by: Alexandre Janniaux's avatarAlexandre Janniaux <ajanni@videolabs.io>
parent 7a8acd46
No related branches found
No related tags found
1 merge request!6946lua: osd: avoid adding an empty array element
Pipeline #571265 passed with stage
in 12 minutes and 38 seconds
......@@ -96,9 +96,8 @@ static int vlc_osd_position_from_string( const char *psz_name )
{ SUBPICTURE_ALIGN_TOP |SUBPICTURE_ALIGN_RIGHT, "top-right" },
{ SUBPICTURE_ALIGN_BOTTOM|SUBPICTURE_ALIGN_LEFT, "bottom-left" },
{ SUBPICTURE_ALIGN_BOTTOM|SUBPICTURE_ALIGN_RIGHT, "bottom-right" },
{ 0, NULL } };
int i;
for( i = 0; pp_icons[i].psz_name; i++ )
};
for( size_t i = 0; i < ARRAY_SIZE(pp_icons); i++ )
{
if( !strcmp( psz_name, pp_icons[i].psz_name ) )
return pp_icons[i].i_position;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment