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
a235278d
Commit
a235278d
authored
Jan 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated variable callback code
parent
b481254c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
include/vlc_variables.h
include/vlc_variables.h
+0
-1
src/misc/variables.c
src/misc/variables.c
+0
-35
No files found.
include/vlc_variables.h
View file @
a235278d
...
...
@@ -111,7 +111,6 @@
#define VLC_VAR_CHOICESCOUNT 0x0028
#define VLC_VAR_INHERITVALUE 0x0030
#define VLC_VAR_TRIGGER_CALLBACKS 0x0035
#define VLC_VAR_SETISCOMMAND 0x0040
/**@}*/
...
...
src/misc/variables.c
View file @
a235278d
...
...
@@ -656,41 +656,6 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
}
}
break
;
case
VLC_VAR_TRIGGER_CALLBACKS
:
{
/* Deal with callbacks. Tell we're in a callback, release the lock,
* call stored functions, retake the lock. */
if
(
p_var
->
i_entries
)
{
int
i_var
;
int
i_entries
=
p_var
->
i_entries
;
callback_entry_t
*
p_entries
=
p_var
->
p_entries
;
p_var
->
b_incallback
=
true
;
vlc_mutex_unlock
(
&
p_priv
->
var_lock
);
/* The real calls */
for
(
;
i_entries
--
;
)
{
p_entries
[
i_entries
].
pf_callback
(
p_this
,
psz_name
,
p_var
->
val
,
p_var
->
val
,
p_entries
[
i_entries
].
p_data
);
}
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
i_var
=
Lookup
(
p_priv
->
p_vars
,
p_priv
->
i_vars
,
psz_name
);
if
(
i_var
<
0
)
{
msg_Err
(
p_this
,
"variable %s has disappeared"
,
psz_name
);
vlc_mutex_unlock
(
&
p_priv
->
var_lock
);
return
VLC_ENOVAR
;
}
p_var
=
&
p_priv
->
p_vars
[
i_var
];
p_var
->
b_incallback
=
false
;
}
}
break
;
case
VLC_VAR_SETISCOMMAND
:
p_var
->
i_type
|=
VLC_VAR_ISCOMMAND
;
...
...
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