static const struct shout_item_t p_items[] = {
item( N_("Shoutcast Radio"), "http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml" ),
item( N_("Shoutcast TV"), "http/shout-winamp://www.shoutcast.com/sbin/newtvlister.phtml?alltv=1" ),
- item( N_("Freebox TV"), "http://mafreebox.freebox.fr/freeboxtv/playlist.m3u" ),
+ itemWithOption( N_("Freebox TV"),"http://mafreebox.freebox.fr/freeboxtv/playlist.m3u", "deinterlace=1"),
itemWithChildren(N_("French TV"), p_frenchtv ),
endItem()
};
struct shout_category_t {
services_discovery_t * p_sd;
const char * psz_category;
+ const struct shout_item_t * p_parent;
};
/* Main functions */
static void ItemAdded( const vlc_event_t * p_event, void * user_data )
{
struct shout_category_t * params = user_data;
- services_discovery_AddItem( params->p_sd,
- p_event->u.input_item_subitem_added.p_new_child,
- params->psz_category );
+ const struct shout_item_t * p_parent = params->p_parent;
+ input_item_t * p_input = p_event->u.input_item_subitem_added.p_new_child;
+
+ int i;
+ for( i = 0; p_parent->ppsz_options[i] != NULL; i++ )
+ input_item_AddOption( p_input, p_parent->ppsz_options[i], VLC_INPUT_OPTION_TRUSTED);
+
+ services_discovery_AddItem( params->p_sd, p_input, params->psz_category );
}
/*****************************************************************************
const struct shout_item_t * p_item,
const char * psz_category )
{
- struct shout_category_t category = { p_sd, psz_category };
+ struct shout_category_t category = { p_sd, psz_category, p_item };
/* Create the item */
input_item_t *p_input = CreateInputItemFromShoutItem( p_sd, p_item );