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
d9c9be81
Commit
d9c9be81
authored
Jul 10, 2013
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: save the activation state of audio filters
parent
d3953b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+22
-0
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
d9c9be81
...
...
@@ -58,6 +58,7 @@
#include <vlc_charset.h>
/* us_strtod */
static
char
*
ChangeFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_filter_type
,
const
char
*
psz_name
,
bool
b_add
);
static
void
ChangeAFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
);
static
void
ChangeVFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
);
#if 0
...
...
@@ -353,6 +354,26 @@ static char *ChangeFiltersString( struct intf_thread_t *p_intf, const char *psz_
return
psz_string
;
}
static
void
ChangeAFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
)
{
char
*
psz_string
;
module_t
*
p_obj
=
module_find
(
psz_name
);
if
(
!
p_obj
)
{
msg_Err
(
p_intf
,
"Unable to find filter module
\"
%s
\"
."
,
psz_name
);
return
;
}
psz_string
=
ChangeFiltersString
(
p_intf
,
"audio-filter"
,
psz_name
,
b_add
);
if
(
!
psz_string
)
return
;
config_PutPsz
(
p_intf
,
"audio-filter"
,
psz_string
);
free
(
psz_string
);
}
static
void
ChangeVFiltersString
(
struct
intf_thread_t
*
p_intf
,
const
char
*
psz_name
,
bool
b_add
)
{
char
*
psz_string
;
...
...
@@ -1086,6 +1107,7 @@ AudioFilterControlWidget::~AudioFilterControlWidget()
void
AudioFilterControlWidget
::
enable
(
bool
b_enable
)
const
{
ChangeAFiltersString
(
p_intf
,
qtu
(
name
),
b_enable
);
playlist_EnableAudioFilter
(
THEPL
,
qtu
(
name
),
b_enable
);
}
...
...
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