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
e911cf1f
Commit
e911cf1f
authored
Apr 07, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: fix and partly clean-up the "visual" callback
parent
66ffb52c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
35 deletions
+10
-35
src/audio_output/filters.c
src/audio_output/filters.c
+10
-35
No files found.
src/audio_output/filters.c
View file @
e911cf1f
...
@@ -275,52 +275,27 @@ static block_t *aout_FiltersPipelinePlay(filter_t *const *filters,
...
@@ -275,52 +275,27 @@ static block_t *aout_FiltersPipelinePlay(filter_t *const *filters,
}
}
/** Callback for visualization selection */
/** Callback for visualization selection */
static
int
VisualizationCallback
(
vlc_object_t
*
obj
,
c
har
const
*
var
,
static
int
VisualizationCallback
(
vlc_object_t
*
obj
,
c
onst
char
*
var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
data
)
void
*
data
)
{
{
audio_output_t
*
aout
=
(
audio_output_t
*
)
obj
;
const
char
*
mode
=
newval
.
psz_string
;
const
char
*
mode
=
newval
.
psz_string
;
if
(
!*
mode
)
if
(
!*
mode
)
{
mode
=
"none"
;
ChangeFiltersString
(
obj
,
"audio-visual"
,
"goom"
,
false
);
/* FIXME: This ugly hack enforced by visual effect-list, as is the need for
ChangeFiltersString
(
obj
,
"audio-visual"
,
"visual"
,
false
);
* separate "visual" (external) and "audio-visual" (internal) variables...
ChangeFiltersString
(
obj
,
"audio-visual"
,
"projectm"
,
false
);
* The visual plugin should have one submodule per effect instead. */
ChangeFiltersString
(
obj
,
"audio-visual"
,
"vsxu"
,
false
);
if
(
strcasecmp
(
mode
,
"none"
)
&&
strcasecmp
(
mode
,
"goom"
)
}
&&
strcasecmp
(
mode
,
"projectm"
)
&&
strcasecmp
(
mode
,
"vsxu"
))
else
if
(
!
strcmp
(
"goom"
,
mode
))
{
ChangeFiltersString
(
obj
,
"audio-visual"
,
"visual"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"goom"
,
true
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"projectm"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"vsxu"
,
false
);
}
else
if
(
!
strcmp
(
"projectm"
,
mode
))
{
ChangeFiltersString
(
obj
,
"audio-visual"
,
"visual"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"goom"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"projectm"
,
true
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"vsxu"
,
false
);
}
else
if
(
!
strcmp
(
"vsxu"
,
mode
))
{
ChangeFiltersString
(
obj
,
"audio-visual"
,
"visual"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"goom"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"projectm"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"vsxu"
,
true
);
}
else
{
{
var_Create
(
obj
,
"effect-list"
,
VLC_VAR_STRING
);
var_Create
(
obj
,
"effect-list"
,
VLC_VAR_STRING
);
var_SetString
(
obj
,
"effect-list"
,
mode
);
var_SetString
(
obj
,
"effect-list"
,
mode
);
mode
=
"visual"
;
ChangeFiltersString
(
obj
,
"audio-visual"
,
"goom"
,
false
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"visual"
,
true
);
ChangeFiltersString
(
obj
,
"audio-visual"
,
"projectm"
,
false
);
}
}
aout_InputRequestRestart
(
aout
);
var_SetString
(
obj
,
"audio-visual"
,
mode
);
aout_InputRequestRestart
((
audio_output_t
*
)
obj
);
(
void
)
var
;
(
void
)
oldval
;
(
void
)
data
;
(
void
)
var
;
(
void
)
oldval
;
(
void
)
data
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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