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
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
Show 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 )
...
@@ -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
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 */
/* Get meta information from user */
#define GET_META( field, s ) do { \
for
(
int
i
=
0
;
p_list
[
i
].
psz_name
;
i
++
)
char *psz_string = var_GetNonEmptyString( p_input, (s) ); \
{
if( psz_string ) {\
char
*
psz_string
=
var_GetNonEmptyString
(
p_input
,
p_list
[
i
].
psz_name
);
EnsureUTF8( psz_string ); \
if
(
!
psz_string
)
vlc_meta_Set( p_meta, vlc_meta_ ## field, psz_string ); \
continue
;
} \
free( psz_string ); } while(0)
EnsureUTF8
(
psz_string
);
vlc_meta_Set
(
p_meta
,
p_list
[
i
].
i_meta
,
psz_string
);
GET_META
(
Title
,
"meta-title"
);
free
(
psz_string
);
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
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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