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
3485cfbe
Commit
3485cfbe
authored
Sep 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Still allocate unique input item IDs
parent
dae39fd7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
src/input/item.c
src/input/item.c
+4
-0
src/libvlc.c
src/libvlc.c
+2
-0
src/libvlc.h
src/libvlc.h
+2
-0
No files found.
src/input/item.c
View file @
3485cfbe
...
...
@@ -501,6 +501,10 @@ input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
input_item_Init
(
p_obj
,
p_input
);
vlc_gc_init
(
p_input
,
input_item_Destroy
);
vlc_object_lock
(
p_obj
->
p_libvlc
);
p_input
->
i_id
=
++
priv
->
i_last_input_id
;
vlc_object_unlock
(
p_obj
->
p_libvlc
);
p_input
->
b_fixed_name
=
false
;
if
(
psz_uri
)
...
...
src/libvlc.c
View file @
3485cfbe
...
...
@@ -819,6 +819,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
vlc_mutex_init
(
&
p_libvlc
->
p_stats
->
lock
);
priv
->
p_stats_computer
=
NULL
;
priv
->
i_last_input_id
=
0
;
/* Not very safe, should be removed */
/*
* Initialize hotkey handling
*/
...
...
src/libvlc.h
View file @
3485cfbe
...
...
@@ -206,6 +206,8 @@ typedef struct libvlc_priv_t
vlc_mutex_t
config_lock
;
///< config file lock
char
*
psz_configfile
;
///< location of config file
int
i_last_input_id
;
///< Last id of input item
/* Messages */
msg_bank_t
msg_bank
;
///< The message bank
int
i_verbose
;
///< info messages
...
...
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