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
3202adfa
Commit
3202adfa
authored
May 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to use vlc_global here.
parent
75477e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/libvlc-common.c
src/libvlc-common.c
+4
-2
No files found.
src/libvlc-common.c
View file @
3202adfa
...
...
@@ -94,7 +94,7 @@
* The evil global variable. We handle it with care, don't worry.
*****************************************************************************/
static
libvlc_global_data_t
libvlc_global
;
static
libvlc_global_data_t
*
p_libvlc_global
=
NULL
;
#define p_libvlc_global (&libvlc_global)
static
libvlc_int_t
*
p_static_vlc
=
NULL
;
static
volatile
unsigned
int
i_instances
=
0
;
...
...
@@ -153,9 +153,11 @@ libvlc_int_t * libvlc_InternalCreate( void )
vlc_value_t
lockval
;
char
*
psz_env
=
NULL
;
#if 0
/* &libvlc_global never changes,
* so we can safely call this multiple times. */
p_libvlc_global = &libvlc_global;
#endif
/* vlc_threads_init *must* be the first internal call! No other call is
* allowed before the thread system has been initialized. */
...
...
@@ -1196,7 +1198,7 @@ static inline int LoadMessages (void)
#else
char
psz_path
[
1024
];
if
(
snprintf
(
psz_path
,
sizeof
(
psz_path
),
"%s/%s"
,
vlc_global
(
&
libvlc_global
)
->
psz_vlcpath
,
"locale"
)
libvlc_global
.
psz_vlcpath
,
"locale"
)
>=
(
int
)
sizeof
(
psz_path
))
return
-
1
;
...
...
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