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
42928230
Commit
42928230
authored
May 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: use vlc_internals()
parent
23afa490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/misc/variables.c
src/misc/variables.c
+11
-11
No files found.
src/misc/variables.c
View file @
42928230
...
...
@@ -160,7 +160,7 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
int
i_new
;
variable_t
*
p_var
;
static
vlc_list_t
dummy_null_list
=
{
0
,
NULL
,
NULL
};
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -323,7 +323,7 @@ int __var_Destroy( vlc_object_t *p_this, const char *psz_name )
{
int
i_var
,
i
;
variable_t
*
p_var
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -399,7 +399,7 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
int
i_var
,
i
;
variable_t
*
p_var
;
vlc_value_t
oldval
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -720,7 +720,7 @@ int __var_Change( vlc_object_t *p_this, const char *psz_name,
int
__var_Type
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
)
{
int
i_var
,
i_type
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -751,7 +751,7 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
int
i_var
;
variable_t
*
p_var
;
vlc_value_t
oldval
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -828,7 +828,7 @@ int __var_Get( vlc_object_t *p_this, const char *psz_name, vlc_value_t *p_val )
{
int
i_var
;
variable_t
*
p_var
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -894,7 +894,7 @@ int __var_AddCallback( vlc_object_t *p_this, const char *psz_name,
int
i_var
;
variable_t
*
p_var
;
callback_entry_t
entry
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
entry
.
pf_callback
=
pf_callback
;
entry
.
p_data
=
p_data
;
...
...
@@ -931,7 +931,7 @@ int __var_DelCallback( vlc_object_t *p_this, const char *psz_name,
{
int
i_entry
,
i_var
;
variable_t
*
p_var
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -977,7 +977,7 @@ int __var_TriggerCallback( vlc_object_t *p_this, const char *psz_name )
int
i_var
;
variable_t
*
p_var
;
vlc_value_t
oldval
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
@@ -1182,7 +1182,7 @@ cleanup:
static
int
GetUnused
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
)
{
int
i_var
,
i_tries
=
0
;
vlc_object_internals_t
*
p_priv
=
p_this
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
)
;
while
(
true
)
{
...
...
@@ -1523,7 +1523,7 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
return
VLC_SUCCESS
;
}
vlc_object_internals_t
*
p_priv
=
p_this
->
p_parent
->
p_internals
;
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
->
p_parent
)
;
/* Look for the variable */
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
...
...
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