Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8604f740
Commit
8604f740
authored
May 07, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RSS: small cosmetics change
parent
34a5ca91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/video_filter/rss.c
modules/video_filter/rss.c
+10
-4
No files found.
modules/video_filter/rss.c
View file @
8604f740
...
@@ -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
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment