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
acc91d37
Commit
acc91d37
authored
May 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move OSD and TLS to instance.
parent
50ca2acd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
src/network/tls.c
src/network/tls.c
+3
-3
src/osd/osd.c
src/osd/osd.c
+11
-11
No files found.
src/network/tls.c
View file @
acc91d37
...
...
@@ -37,8 +37,8 @@ tls_Init( vlc_object_t *p_this )
tls_t
*
p_tls
;
vlc_value_t
lockval
;
var_Create
(
p_this
->
p_libvlc
_global
,
"tls_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_this
->
p_libvlc
_global
,
"tls_mutex"
,
&
lockval
);
var_Create
(
p_this
->
p_libvlc
,
"tls_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_this
->
p_libvlc
,
"tls_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_tls
=
vlc_object_find
(
p_this
,
VLC_OBJECT_TLS
,
FIND_ANYWHERE
);
...
...
@@ -76,7 +76,7 @@ tls_Deinit( tls_t *p_tls )
int
i
;
vlc_value_t
lockval
;
var_Get
(
p_tls
->
p_libvlc
_global
,
"tls_mutex"
,
&
lockval
);
var_Get
(
p_tls
->
p_libvlc
,
"tls_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
vlc_object_release
(
p_tls
);
...
...
src/osd/osd.c
View file @
acc91d37
...
...
@@ -61,8 +61,8 @@ osd_menu_t *__osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
int
i_steps
=
0
;
/* to be sure to avoid multiple creation */
var_Create
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Create
(
p_this
->
p_libvlc
,
"osd_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
if
(
(
p_osd
=
vlc_object_find
(
p_this
,
VLC_OBJECT_OSDMENU
,
FIND_ANYWHERE
)
)
==
NULL
)
...
...
@@ -124,7 +124,7 @@ void __osd_MenuDelete( vlc_object_t *p_this, osd_menu_t *p_osd )
if
(
!
p_osd
||
!
p_this
)
return
;
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
vlc_object_release
(
p_osd
);
...
...
@@ -204,7 +204,7 @@ void __osd_MenuShow( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
#if defined(OSD_MENU_DEBUG)
...
...
@@ -245,7 +245,7 @@ void __osd_MenuHide( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
#if defined(OSD_MENU_DEBUG)
...
...
@@ -278,7 +278,7 @@ void __osd_MenuActivate( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
#if defined(OSD_MENU_DEBUG)
...
...
@@ -340,7 +340,7 @@ void __osd_MenuNext( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_button
=
p_osd
->
p_state
->
p_visible
;
...
...
@@ -390,7 +390,7 @@ void __osd_MenuPrev( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_button
=
p_osd
->
p_state
->
p_visible
;
...
...
@@ -443,7 +443,7 @@ void __osd_MenuUp( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_button
=
p_osd
->
p_state
->
p_visible
;
...
...
@@ -514,7 +514,7 @@ void __osd_MenuDown( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_button
=
p_osd
->
p_state
->
p_visible
;
...
...
@@ -593,7 +593,7 @@ void __osd_Volume( vlc_object_t *p_this )
return
;
}
var_Get
(
p_this
->
p_libvlc
_global
,
"osd_mutex"
,
&
lockval
);
var_Get
(
p_this
->
p_libvlc
,
"osd_mutex"
,
&
lockval
);
vlc_mutex_lock
(
lockval
.
p_address
);
p_button
=
p_osd
->
p_state
->
p_volume
;
...
...
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