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

lua: don't use | operator on VLC errors

This could end up with unknown/invalid error values.
parent c81cb6fb
No related branches found
No related tags found
Loading
Pipeline #515453 passed with stage
in 12 minutes and 51 seconds
......@@ -876,7 +876,10 @@ int lua_ExecuteFunctionVa( extensions_manager_t *p_mgr, extension_t *p_ext,
i_ret = VLC_EGENERIC;
}
i_ret |= lua_DialogFlush( L );
if (i_ret != VLC_SUCCESS)
lua_DialogFlush( L );
else
i_ret = lua_DialogFlush( L );
exit:
return i_ret;
......@@ -918,7 +921,10 @@ int lua_ExtensionTriggerMenu( extensions_manager_t *p_mgr,
i_ret = VLC_EGENERIC;
}
i_ret |= lua_DialogFlush( L );
if (i_ret != VLC_SUCCESS)
lua_DialogFlush( L );
else
i_ret = lua_DialogFlush( L );
if( i_ret < VLC_SUCCESS )
{
msg_Dbg( p_mgr, "Something went wrong in %s (%s:%d)",
......
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