Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f513e2cc
Commit
f513e2cc
authored
Oct 17, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shout: Change the scope of the iteration variable.
Pointed by jb.
parent
546997bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/services_discovery/shout.c
modules/services_discovery/shout.c
+2
-4
No files found.
modules/services_discovery/shout.c
View file @
f513e2cc
...
...
@@ -179,8 +179,7 @@ static void ItemAdded( const vlc_event_t * p_event, void * user_data )
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
++
)
for
(
int
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
);
...
...
@@ -192,13 +191,12 @@ static void ItemAdded( const vlc_event_t * p_event, void * user_data )
static
input_item_t
*
CreateInputItemFromShoutItem
(
services_discovery_t
*
p_sd
,
const
struct
shout_item_t
*
p_item
)
{
int
i
;
/* Create the item */
input_item_t
*
p_input
=
input_item_New
(
p_sd
,
p_item
->
psz_url
,
vlc_gettext
(
p_item
->
psz_name
)
);
/* Copy options */
for
(
i
=
0
;
p_item
->
ppsz_options
[
i
]
!=
NULL
;
i
++
)
for
(
int
i
=
0
;
p_item
->
ppsz_options
[
i
]
!=
NULL
;
i
++
)
input_item_AddOption
(
p_input
,
p_item
->
ppsz_options
[
i
],
VLC_INPUT_OPTION_TRUSTED
);
input_item_AddOption
(
p_input
,
"no-playlist-autostart"
,
VLC_INPUT_OPTION_TRUSTED
);
...
...
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