What I found is that the options always get added as untrusted, i.e. flag unique:
Class plugin.cpp
Code: Select all
int VLCPlugin::playlist_add_extended_untrusted(const char *mrl, int optc, const char **optv)
{
.....
for( int i = 0; i < optc; ++i )
{
libvlc_media_add_option_flag(p_m, optv[i], libvlc_media_option_unique);//libvlc_media_option_trusted);
}
....
}
Code: Select all
enum
{
libvlc_media_option_trusted = 0x2,
libvlc_media_option_unique = 0x100
};
Is there a way to accomplish the same efect without modifying the code of the plugin?
Why is it set as untrusted in the first place?