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
9c87bdf6
Commit
9c87bdf6
authored
May 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove p_root->b_ready. Duplicated state.
parent
6d0788dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
src/libvlc-common.c
src/libvlc-common.c
+1
-3
src/libvlc.h
src/libvlc.h
+0
-2
src/misc/threads.c
src/misc/threads.c
+0
-1
No files found.
src/libvlc-common.c
View file @
9c87bdf6
...
...
@@ -158,14 +158,12 @@ libvlc_int_t * libvlc_InternalCreate( void )
/* Now that the thread system is initialized, we don't have much, but
* at least we have variables */
vlc_mutex_t
*
lock
=
var_AcquireMutex
(
"libvlc"
);
if
(
!
p_libvlc_global
->
b_ready
)
if
(
i_instances
==
0
)
{
/* Guess what CPU we have */
cpu_flags
=
CPUCapabilities
();
/* The module bank will be initialized later */
p_libvlc_global
->
p_module_bank
=
NULL
;
p_libvlc_global
->
b_ready
=
true
;
}
/* Allocate a libvlc instance object */
...
...
src/libvlc.h
View file @
9c87bdf6
...
...
@@ -109,8 +109,6 @@ struct libvlc_global_data_t
{
VLC_COMMON_MEMBERS
bool
b_ready
;
///< Initialization boolean
/* Object structure data */
int
i_counter
;
///< object counter
int
i_objects
;
///< Attached objects count
...
...
src/misc/threads.c
View file @
9c87bdf6
...
...
@@ -151,7 +151,6 @@ int vlc_threads_init( void )
}
/* We should be safe now. Do all the initialization stuff we want. */
p_root
->
b_ready
=
false
;
vlc_threadvar_create
(
p_root
,
&
msg_context_global_key
);
}
i_initializations
++
;
...
...
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