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
0fdaa3d7
Commit
0fdaa3d7
authored
Aug 09, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: delete input callbacks when input is deleted
parent
d3f19266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/audio_output/input.c
src/audio_output/input.c
+10
-6
No files found.
src/audio_output/input.c
View file @
0fdaa3d7
...
@@ -137,19 +137,19 @@ int aout_InputNew( audio_output_t * p_aout,
...
@@ -137,19 +137,19 @@ int aout_InputNew( audio_output_t * p_aout,
var_SetString
(
p_aout
,
"visual"
,
val
.
psz_string
);
var_SetString
(
p_aout
,
"visual"
,
val
.
psz_string
);
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
}
}
var_AddCallback
(
p_aout
,
"visual"
,
VisualizationCallback
,
p_input
);
}
}
var_AddCallback
(
p_aout
,
"visual"
,
VisualizationCallback
,
p_input
);
if
(
var_Type
(
p_aout
,
"equalizer"
)
==
0
)
if
(
var_Type
(
p_aout
,
"equalizer"
)
==
0
)
{
{
module_config_t
*
p_config
;
module_config_t
*
p_config
;
int
i
;
int
i
;
var_Create
(
p_aout
,
"equalizer"
,
VLC_VAR_STRING
|
VLC_VAR_HASCHOICE
);
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_aout
),
"equalizer-preset"
);
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_aout
),
"equalizer-preset"
);
if
(
p_config
&&
p_config
->
i_list
)
if
(
p_config
&&
p_config
->
i_list
)
{
{
var_Create
(
p_aout
,
"equalizer"
,
VLC_VAR_STRING
|
VLC_VAR_HASCHOICE
);
text
.
psz_string
=
_
(
"Equalizer"
);
text
.
psz_string
=
_
(
"Equalizer"
);
var_Change
(
p_aout
,
"equalizer"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Change
(
p_aout
,
"equalizer"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
...
@@ -164,9 +164,9 @@ int aout_InputNew( audio_output_t * p_aout,
...
@@ -164,9 +164,9 @@ int aout_InputNew( audio_output_t * p_aout,
&
val
,
&
text
);
&
val
,
&
text
);
}
}
var_AddCallback
(
p_aout
,
"equalizer"
,
EqualizerCallback
,
p_input
);
}
}
}
}
var_AddCallback
(
p_aout
,
"equalizer"
,
EqualizerCallback
,
p_input
);
if
(
var_Type
(
p_aout
,
"audio-filter"
)
==
0
)
if
(
var_Type
(
p_aout
,
"audio-filter"
)
==
0
)
{
{
...
@@ -204,10 +204,9 @@ int aout_InputNew( audio_output_t * p_aout,
...
@@ -204,10 +204,9 @@ int aout_InputNew( audio_output_t * p_aout,
var_Change
(
p_aout
,
"audio-replay-gain-mode"
,
VLC_VAR_ADDCHOICE
,
var_Change
(
p_aout
,
"audio-replay-gain-mode"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
&
val
,
&
text
);
}
}
var_AddCallback
(
p_aout
,
"audio-replay-gain-mode"
,
ReplayGainCallback
,
p_input
);
}
}
}
}
var_AddCallback
(
p_aout
,
"audio-replay-gain-mode"
,
ReplayGainCallback
,
p_input
);
char
*
gain
=
var_InheritString
(
p_aout
,
"audio-replay-gain-mode"
);
char
*
gain
=
var_InheritString
(
p_aout
,
"audio-replay-gain-mode"
);
vlc_atomic_setf
(
&
p_input
->
multiplier
,
vlc_atomic_setf
(
&
p_input
->
multiplier
,
...
@@ -438,6 +437,11 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input )
...
@@ -438,6 +437,11 @@ int aout_InputDelete( audio_output_t * p_aout, aout_input_t * p_input )
if
(
p_input
->
b_error
)
if
(
p_input
->
b_error
)
return
0
;
return
0
;
var_DelCallback
(
p_aout
,
"audio-replay-gain-mode"
,
ReplayGainCallback
,
p_input
);
var_DelCallback
(
p_aout
,
"equalizer"
,
EqualizerCallback
,
p_input
);
var_DelCallback
(
p_aout
,
"visual"
,
VisualizationCallback
,
p_input
);
/* XXX We need to update b_recycle_vout before calling aout_FiltersDestroyPipeline.
/* XXX We need to update b_recycle_vout before calling aout_FiltersDestroyPipeline.
* FIXME They can be a race condition if audio-visual is updated between
* FIXME They can be a race condition if audio-visual is updated between
* aout_InputDelete and aout_InputNew.
* aout_InputDelete and aout_InputNew.
...
...
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