Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e7859061
Commit
e7859061
authored
Aug 04, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use module_IsCapable
parent
6c11c08a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
25 deletions
+23
-25
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+3
-3
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+2
-2
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+18
-20
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
e7859061
...
@@ -216,15 +216,15 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, vlc_bool_t b_add )
...
@@ -216,15 +216,15 @@ void ExtVideo::ChangeVFiltersString( char *psz_name, vlc_bool_t b_add )
return
;
return
;
}
}
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"video filter2"
)
)
if
(
module_IsCapable
(
(
module_t
*
)
p_obj
,
"video filter2"
)
)
{
{
psz_filter_type
=
"video-filter"
;
psz_filter_type
=
"video-filter"
;
}
}
else
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"video filter"
)
)
else
if
(
module_IsCapable
(
(
module_t
*
)
p_obj
,
"video filter"
)
)
{
{
psz_filter_type
=
"vout-filter"
;
psz_filter_type
=
"vout-filter"
;
}
}
else
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"sub filter"
)
)
else
if
(
module_IsCapable
(
(
module_t
*
)
p_obj
,
"sub filter"
)
)
{
{
psz_filter_type
=
"sub-filter"
;
psz_filter_type
=
"sub-filter"
;
}
}
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
e7859061
...
@@ -452,7 +452,7 @@ void ModuleConfigControl::finish( bool bycat )
...
@@ -452,7 +452,7 @@ void ModuleConfigControl::finish( bool bycat )
combo
->
setCurrentIndex
(
combo
->
count
()
-
1
);
combo
->
setCurrentIndex
(
combo
->
count
()
-
1
);
}
}
}
}
else
if
(
!
strcmp
(
p_parser
->
psz_capability
,
p_item
->
psz_type
)
)
else
if
(
module_IsCapable
(
p_parser
,
p_item
->
psz_type
)
)
{
{
combo
->
addItem
(
qtr
(
p_parser
->
psz_longname
),
combo
->
addItem
(
qtr
(
p_parser
->
psz_longname
),
QVariant
(
p_parser
->
psz_object_name
)
);
QVariant
(
p_parser
->
psz_object_name
)
);
...
@@ -572,7 +572,7 @@ void ModuleListConfigControl::finish( bool bycat )
...
@@ -572,7 +572,7 @@ void ModuleListConfigControl::finish( bool bycat )
}
}
}
}
}
}
else
if
(
!
strcmp
(
p_parser
->
psz_capability
,
p_item
->
psz_type
)
)
else
if
(
module_IsCapable
(
p_parser
,
p_item
->
psz_type
)
)
{
{
CHECKBOX_LISTS
;
CHECKBOX_LISTS
;
}
}
...
...
modules/gui/qt4/menus.cpp
View file @
e7859061
...
@@ -428,14 +428,15 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
...
@@ -428,14 +428,15 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
for
(
int
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
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
;
module_t
*
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
if
(
!
strcmp
(
p_parser
->
psz_capability
,
"services_discovery"
)
)
if
(
module_IsCapable
(
p_parser
,
"services_discovery"
)
)
i_num
++
;
i_num
++
;
}
}
for
(
int
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
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
;
module_t
*
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
if
(
!
strcmp
(
p_parser
->
psz_capability
,
"services_discovery"
)
)
if
(
!
module_IsCapable
(
p_parser
,
"services_discovery"
)
)
{
continue
;
QAction
*
a
=
new
QAction
(
qfu
(
p_parser
->
psz_longname
),
menu
);
QAction
*
a
=
new
QAction
(
qfu
(
p_parser
->
psz_longname
),
menu
);
a
->
setCheckable
(
true
);
a
->
setCheckable
(
true
);
/* hack to handle submodules properly */
/* hack to handle submodules properly */
...
@@ -445,15 +446,12 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
...
@@ -445,15 +446,12 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
if
(
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
if
(
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
i
>=
0
?
p_parser
->
pp_shortcuts
[
i
]
i
>=
0
?
p_parser
->
pp_shortcuts
[
i
]
:
p_parser
->
psz_object_name
)
)
:
p_parser
->
psz_object_name
)
)
{
a
->
setChecked
(
true
);
a
->
setChecked
(
true
);
}
CONNECT
(
a
,
triggered
(),
THEDP
->
SDMapper
,
map
()
);
CONNECT
(
a
,
triggered
(),
THEDP
->
SDMapper
,
map
()
);
THEDP
->
SDMapper
->
setMapping
(
a
,
i
>=
0
?
p_parser
->
pp_shortcuts
[
i
]
:
THEDP
->
SDMapper
->
setMapping
(
a
,
i
>=
0
?
p_parser
->
pp_shortcuts
[
i
]
:
p_parser
->
psz_object_name
);
p_parser
->
psz_object_name
);
menu
->
addAction
(
a
);
menu
->
addAction
(
a
);
}
}
}
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
return
menu
;
return
menu
;
}
}
...
...
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