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
7363adb3
Commit
7363adb3
authored
Aug 18, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_input.h: Create an input_item_MetaMatch (part of a fix for [21193]).
parent
10c49c60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
include/vlc_input.h
include/vlc_input.h
+11
-1
No files found.
include/vlc_input.h
View file @
7363adb3
...
...
@@ -234,6 +234,16 @@ static inline void input_item_SetMeta( input_item_t *p_i, vlc_meta_type_t meta_t
vlc_event_send
(
&
p_i
->
event_manager
,
&
event
);
}
static
inline
vlc_bool_t
input_item_MetaMatch
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
,
const
char
*
psz
)
{
vlc_mutex_lock
(
&
p_i
->
lock
);
const
char
*
meta
=
vlc_meta_Get
(
p_i
->
p_meta
,
meta_type
);
vlc_bool_t
ret
=
meta
&&
strcasestr
(
meta
,
psz
);
vlc_mutex_unlock
(
&
p_i
->
lock
);
return
ret
;
}
static
inline
char
*
input_item_GetMeta
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
)
{
char
*
psz
=
NULL
;
...
...
@@ -252,7 +262,7 @@ static inline char * input_item_GetMeta( input_item_t *p_i, vlc_meta_type_t meta
return
psz
;
}
static
inline
char
*
input_item_GetName
(
input_item_t
*
p_i
)
static
inline
char
*
input_item_GetName
(
input_item_t
*
p_i
)
{
vlc_mutex_lock
(
&
p_i
->
lock
);
char
*
psz_s
=
p_i
->
psz_name
?
strdup
(
p_i
->
psz_name
)
:
NULL
;
...
...
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