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
c52e96aa
Commit
c52e96aa
authored
May 13, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: convert item id to new atomic interface
parent
ae3db51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/input/item.c
src/input/item.c
+2
-2
No files found.
src/input/item.c
View file @
c52e96aa
...
...
@@ -804,7 +804,7 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
int
i_options
,
const
char
*
const
*
ppsz_options
,
unsigned
flags
,
mtime_t
duration
,
int
type
)
{
static
vlc_atomic_t
last_input_id
=
VLC_ATOMIC
_INIT
(
0
);
static
atomic_int
last_input_id
=
ATOMIC_VAR
_INIT
(
0
);
input_item_owner_t
*
owner
=
calloc
(
1
,
sizeof
(
*
owner
)
);
if
(
unlikely
(
owner
==
NULL
)
)
...
...
@@ -813,7 +813,7 @@ input_item_NewWithType( const char *psz_uri, const char *psz_name,
input_item_t
*
p_input
=
&
owner
->
item
;
vlc_event_manager_t
*
p_em
=
&
p_input
->
event_manager
;
p_input
->
i_id
=
vlc_atomic_inc
(
&
last_input_id
);
p_input
->
i_id
=
atomic_fetch_add
(
&
last_input_id
,
1
);
vlc_gc_init
(
p_input
,
input_item_Destroy
);
vlc_mutex_init
(
&
p_input
->
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