Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
78ea3f23
Commit
78ea3f23
authored
Aug 15, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: video filter helper for getting the filter type
Ref #11613
parent
8b0f5764
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+13
-18
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
78ea3f23
...
...
@@ -354,39 +354,34 @@ static void ChangeAFiltersString( struct intf_thread_t *p_intf, const char *psz_
free
(
psz_string
);
}
static
void
ChangeVFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
)
static
const
char
*
GetVFilterType
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
)
{
char
*
psz_string
;
const
char
*
psz_filter_type
;
module_t
*
p_obj
=
module_find
(
psz_name
);
if
(
!
p_obj
)
{
msg_Err
(
p_intf
,
"Unable to find filter module
\"
%s
\"
."
,
psz_name
);
return
;
return
NULL
;
}
if
(
module_provides
(
p_obj
,
"video splitter"
)
)
{
psz_filter_type
=
"video-splitter"
;
}
return
"video-splitter"
;
else
if
(
module_provides
(
p_obj
,
"video filter2"
)
)
{
psz_filter_type
=
"video-filter"
;
}
return
"video-filter"
;
else
if
(
module_provides
(
p_obj
,
"sub source"
)
)
{
psz_filter_type
=
"sub-source"
;
}
return
"sub-source"
;
else
if
(
module_provides
(
p_obj
,
"sub filter"
)
)
{
psz_filter_type
=
"sub-filter"
;
}
return
"sub-filter"
;
else
{
msg_Err
(
p_intf
,
"Unknown video filter type."
);
return
;
return
NULL
;
}
}
static
void
ChangeVFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
)
{
char
*
psz_string
;
const
char
*
psz_filter_type
=
GetVFilterType
(
p_intf
,
psz_name
);
psz_string
=
ChangeFiltersString
(
p_intf
,
psz_filter_type
,
psz_name
,
b_add
);
if
(
!
psz_string
)
...
...
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