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
54b9bea2
Commit
54b9bea2
authored
Feb 10, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows: do not use INSERT_ELEM in c++ code.
parent
d388fc44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+14
-5
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
54b9bea2
...
@@ -1391,12 +1391,22 @@ wxMenu *Playlist::SDMenu()
...
@@ -1391,12 +1391,22 @@ wxMenu *Playlist::SDMenu()
{
{
module_t
*
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
module_t
*
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
if
(
!
strcmp
(
p_parser
->
psz_capability
,
"services_discovery"
)
)
i_number
++
;
}
if
(
i_number
)
pp_sds
=
(
char
**
)
malloc
(
i_number
*
sizeof
(
void
*
)
);
i_number
=
0
;
for
(
int
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
{
module_t
*
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
if
(
!
strcmp
(
p_parser
->
psz_capability
,
"services_discovery"
)
)
if
(
!
strcmp
(
p_parser
->
psz_capability
,
"services_discovery"
)
)
{
{
p_sd_menu
->
AppendCheckItem
(
FirstSD_Event
+
i_number
,
p_sd_menu
->
AppendCheckItem
(
FirstSD_Event
+
i_number
,
wxU
(
p_parser
->
psz_longname
?
p_parser
->
psz_longname
:
wxU
(
p_parser
->
psz_longname
?
p_parser
->
psz_longname
:
(
p_parser
->
psz_shortname
?
(
p_parser
->
psz_shortname
?
p_parser
->
psz_shortname
:
p_parser
->
psz_object_name
)
)
);
p_parser
->
psz_shortname
:
p_parser
->
psz_object_name
)
)
);
if
(
playlist_IsServicesDiscoveryLoaded
(
p_playlist
,
if
(
playlist_IsServicesDiscoveryLoaded
(
p_playlist
,
p_parser
->
psz_object_name
)
)
p_parser
->
psz_object_name
)
)
...
@@ -1404,8 +1414,7 @@ wxMenu *Playlist::SDMenu()
...
@@ -1404,8 +1414,7 @@ wxMenu *Playlist::SDMenu()
p_sd_menu
->
Check
(
FirstSD_Event
+
i_number
,
TRUE
);
p_sd_menu
->
Check
(
FirstSD_Event
+
i_number
,
TRUE
);
}
}
INSERT_ELEM
(
(
void
**
)
pp_sds
,
i_number
,
i_number
,
pp_sds
[
i_number
++
]
=
p_parser
->
psz_object_name
;
(
void
*
)
p_parser
->
psz_object_name
);
}
}
}
}
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
...
...
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