Plugin issue found with "playlist.add(url, name, options)"
Posted: 23 Nov 2011 10:56
I've posted a question days ago (viewtopic.php?f=16&t=95742) and the troubleshooting led me to debugging the code for the ActiveX VLC plugin.
What I found is that the options always get added as untrusted, i.e. flag unique:
Class plugin.cpp
libvlc_media.h
If I replace the flag with the other enum value libvlc_media_option_trusted the specified option in playlist.add(url, name,options) is successfully added.
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?
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?