Commit 8604f740 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

RSS: small cosmetics change

parent 34a5ca91
...@@ -220,7 +220,8 @@ vlc_module_begin () ...@@ -220,7 +220,8 @@ vlc_module_begin ()
false ) false )
add_integer( CFG_PREFIX "ttl", 1800, TTL_TEXT, TTL_LONGTEXT, false ) add_integer( CFG_PREFIX "ttl", 1800, TTL_TEXT, TTL_LONGTEXT, false )
add_bool( CFG_PREFIX "images", true, IMAGE_TEXT, IMAGE_LONGTEXT, false ) add_bool( CFG_PREFIX "images", true, IMAGE_TEXT, IMAGE_LONGTEXT, false )
add_integer( CFG_PREFIX "title", default_title, TITLE_TEXT, TITLE_LONGTEXT, false ) add_integer( CFG_PREFIX "title", default_title, TITLE_TEXT, TITLE_LONGTEXT,
false )
change_integer_list( pi_title_modes, ppsz_title_modes ) change_integer_list( pi_title_modes, ppsz_title_modes )
set_description( N_("RSS and Atom feed display") ) set_description( N_("RSS and Atom feed display") )
...@@ -294,7 +295,8 @@ static int CreateFilter( vlc_object_t *p_this ) ...@@ -294,7 +295,8 @@ static int CreateFilter( vlc_object_t *p_this )
if( p_sys->b_images && p_sys->p_style->i_font_size == -1 ) if( p_sys->b_images && p_sys->p_style->i_font_size == -1 )
{ {
msg_Warn( p_filter, "rss-size wasn't specified. Feed images will thus be displayed without being resized" ); msg_Warn( p_filter, "rss-size wasn't specified. Feed images will thus "
"be displayed without being resized" );
} }
/* Parse the urls */ /* Parse the urls */
...@@ -372,7 +374,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -372,7 +374,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
} }
if( p_sys->last_date if( p_sys->last_date
+ ( p_sys->i_cur_char == 0 && p_sys->i_cur_item == ( p_sys->i_title == scroll_title ? -1 : 0 ) ? 5 : 1 ) + ( p_sys->i_cur_char == 0 &&
p_sys->i_cur_item == ( p_sys->i_title == scroll_title ? -1 : 0 ) ? 5 : 1 )
/* ( ... ? 5 : 1 ) means "wait 5 times more for the 1st char" */ /* ( ... ? 5 : 1 ) means "wait 5 times more for the 1st char" */
* p_sys->i_speed > date ) * p_sys->i_speed > date )
{ {
...@@ -382,7 +385,10 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date ) ...@@ -382,7 +385,10 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
p_sys->last_date = date; p_sys->last_date = date;
p_sys->i_cur_char++; p_sys->i_cur_char++;
if( p_sys->i_cur_item == -1 ? p_sys->p_feeds[p_sys->i_cur_feed].psz_title[p_sys->i_cur_char] == 0 : p_sys->p_feeds[p_sys->i_cur_feed].p_items[p_sys->i_cur_item].psz_title[p_sys->i_cur_char] == 0 )
if( p_sys->i_cur_item == -1 ?
p_sys->p_feeds[p_sys->i_cur_feed].psz_title[p_sys->i_cur_char] == 0 :
p_sys->p_feeds[p_sys->i_cur_feed].p_items[p_sys->i_cur_item].psz_title[p_sys->i_cur_char] == 0 )
{ {
p_sys->i_cur_char = 0; p_sys->i_cur_char = 0;
p_sys->i_cur_item++; p_sys->i_cur_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