Commit 546997bf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

shout: Enable deinterlace=On for freebox channels.

We could probably have deinterlace=Auto, as it seems to work reliably enough on freebox channels.
parent cc713937
...@@ -72,7 +72,7 @@ static const struct shout_item_t p_frenchtv[] = { ...@@ -72,7 +72,7 @@ static const struct shout_item_t p_frenchtv[] = {
static const struct shout_item_t p_items[] = { static const struct shout_item_t p_items[] = {
item( N_("Shoutcast Radio"), "http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml" ), 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_("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 ), itemWithChildren(N_("French TV"), p_frenchtv ),
endItem() endItem()
}; };
...@@ -85,6 +85,7 @@ static const struct shout_item_t p_items[] = { ...@@ -85,6 +85,7 @@ static const struct shout_item_t p_items[] = {
struct shout_category_t { struct shout_category_t {
services_discovery_t * p_sd; services_discovery_t * p_sd;
const char * psz_category; const char * psz_category;
const struct shout_item_t * p_parent;
}; };
/* Main functions */ /* Main functions */
...@@ -175,9 +176,14 @@ static int Open( vlc_object_t *p_this, enum type_e i_type ) ...@@ -175,9 +176,14 @@ static int Open( vlc_object_t *p_this, enum type_e i_type )
static void ItemAdded( const vlc_event_t * p_event, void * user_data ) static void ItemAdded( const vlc_event_t * p_event, void * user_data )
{ {
struct shout_category_t * params = user_data; struct shout_category_t * params = user_data;
services_discovery_AddItem( params->p_sd, const struct shout_item_t * p_parent = params->p_parent;
p_event->u.input_item_subitem_added.p_new_child, input_item_t * p_input = p_event->u.input_item_subitem_added.p_new_child;
params->psz_category );
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 );
} }
/***************************************************************************** /*****************************************************************************
...@@ -206,7 +212,7 @@ static void AddSubitemsOfShoutItemURL( services_discovery_t *p_sd, ...@@ -206,7 +212,7 @@ static void AddSubitemsOfShoutItemURL( services_discovery_t *p_sd,
const struct shout_item_t * p_item, const struct shout_item_t * p_item,
const char * psz_category ) 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 */ /* Create the item */
input_item_t *p_input = CreateInputItemFromShoutItem( p_sd, p_item ); input_item_t *p_input = CreateInputItemFromShoutItem( p_sd, p_item );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment