Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9998c1ec
Commit
9998c1ec
authored
Aug 18, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_input.h: Fix funman's commit.
parent
663adcbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
include/vlc_input.h
include/vlc_input.h
+16
-10
No files found.
include/vlc_input.h
View file @
9998c1ec
...
...
@@ -221,11 +221,12 @@ static inline void input_ItemClean( input_item_t *p_i )
static
inline
void
input_item_SetMeta
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
,
const
char
*
psz_val
)
{
vlc_event_t
event
;
vlc_mutex_lock
(
&
p_i
->
p_lock
);
vlc_mutex_lock
(
&
p_i
->
lock
);
if
(
!
p_i
->
p_meta
)
p_i
->
p_meta
=
vlc_meta_New
();
vlc_meta_Set
(
p_i
->
p_meta
,
meta_type
,
psz_val
);
vlc_mutex_unlock
(
&
p_i
->
p_
lock
);
vlc_mutex_unlock
(
&
p_i
->
lock
);
/* Notify interested third parties */
event
.
type
=
vlc_InputItemMetaChanged
;
...
...
@@ -235,22 +236,27 @@ static inline void input_item_SetMeta( input_item_t *p_i, vlc_meta_type_t meta_t
static
inline
char
*
input_item_GetMeta
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
)
{
vlc_mutex_lock
(
&
p_i
->
p_lock
);
char
*
psz
=
NULL
;
vlc_mutex_lock
(
&
p_i
->
lock
);
if
(
!
p_i
->
p_meta
)
{
vlc_mutex_unlock
(
&
p_i
->
p_
lock
);
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
NULL
;
}
char
*
psz_s
=
strdup
(
vlc_meta_Get
(
p_i
->
p_meta
,
meta_type
)
);
vlc_mutex_unlock
(
&
p_i
->
p_lock
);
return
psz_s
;
if
(
vlc_meta_Get
(
p_i
->
p_meta
,
meta_type
)
)
psz
=
strdup
(
vlc_meta_Get
(
p_i
->
p_meta
,
meta_type
)
);
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
psz
;
}
static
inline
char
*
input_item_GetName
(
input_item_t
*
p_i
)
{
vlc_mutex_lock
(
&
p_i
->
p_
lock
);
char
*
psz_s
=
strdup
(
p_i
->
psz_name
)
;
vlc_mutex_unlock
(
&
p_i
->
p_
lock
);
vlc_mutex_lock
(
&
p_i
->
lock
);
char
*
psz_s
=
p_i
->
psz_name
?
strdup
(
p_i
->
psz_name
)
:
NULL
;
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
psz_s
;
}
...
...
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