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
45b9caaf
Commit
45b9caaf
authored
Mar 27, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic (input).
parent
09ca7d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
src/input/input.c
src/input/input.c
+21
-16
No files found.
src/input/input.c
View file @
45b9caaf
...
...
@@ -2796,23 +2796,28 @@ static void SlaveSeek( input_thread_t *p_input )
*****************************************************************************/
static
void
InputMetaUser
(
input_thread_t
*
p_input
,
vlc_meta_t
*
p_meta
)
{
static
const
struct
{
int
i_meta
;
const
char
*
psz_name
;
}
p_list
[]
=
{
{
vlc_meta_Title
,
"meta-title"
},
{
vlc_meta_Artist
,
"meta-artist"
},
{
vlc_meta_Genre
,
"meta-genre"
},
{
vlc_meta_Copyright
,
"meta-copyright"
},
{
vlc_meta_Description
,
"meta-description"
},
{
vlc_meta_Date
,
"meta-date"
},
{
vlc_meta_URL
,
"meta-url"
},
{
0
,
NULL
}
};
/* Get meta information from user */
#define GET_META( field, s ) do { \
char *psz_string = var_GetNonEmptyString( p_input, (s) ); \
if( psz_string ) {\
EnsureUTF8( psz_string ); \
vlc_meta_Set( p_meta, vlc_meta_ ## field, psz_string ); \
} \
free( psz_string ); } while(0)
GET_META
(
Title
,
"meta-title"
);
GET_META
(
Artist
,
"meta-artist"
);
GET_META
(
Genre
,
"meta-genre"
);
GET_META
(
Copyright
,
"meta-copyright"
);
GET_META
(
Description
,
"meta-description"
);
GET_META
(
Date
,
"meta-date"
);
GET_META
(
URL
,
"meta-url"
);
#undef GET_META
for
(
int
i
=
0
;
p_list
[
i
].
psz_name
;
i
++
)
{
char
*
psz_string
=
var_GetNonEmptyString
(
p_input
,
p_list
[
i
].
psz_name
);
if
(
!
psz_string
)
continue
;
EnsureUTF8
(
psz_string
);
vlc_meta_Set
(
p_meta
,
p_list
[
i
].
i_meta
,
psz_string
);
free
(
psz_string
);
}
}
/*****************************************************************************
...
...
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