Skip to content
Snippets Groups Projects
Commit 33e838f0 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.

(cherry picked from commit 586b28f4)
parent 720c55a0
No related branches found
No related tags found
1 merge request!6062[3.0] lua: don't use | operator on VLC errors
Pipeline #516500 passed with stage
in 12 minutes and 55 seconds
......@@ -971,7 +971,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;
......@@ -1013,7 +1016,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