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
8c723814
Commit
8c723814
authored
Oct 07, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up vlc_meta_TypeToLocalizedString()
parent
2222eb84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
src/input/meta.c
src/input/meta.c
+24
-21
No files found.
src/input/meta.c
View file @
8c723814
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
# include "config.h"
# include "config.h"
#endif
#endif
#include <assert.h>
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_playlist.h>
#include <vlc_playlist.h>
#include <vlc_url.h>
#include <vlc_url.h>
...
@@ -47,28 +49,29 @@ struct vlc_meta_t
...
@@ -47,28 +49,29 @@ struct vlc_meta_t
/* FIXME bad name convention */
/* FIXME bad name convention */
const
char
*
vlc_meta_TypeToLocalizedString
(
vlc_meta_type_t
meta_type
)
const
char
*
vlc_meta_TypeToLocalizedString
(
vlc_meta_type_t
meta_type
)
{
{
s
witch
(
meta_type
)
s
tatic
const
char
posix_names
[][
16
]
=
{
{
case
vlc_meta_Title
:
return
_
(
"Title"
);
[
vlc_meta_Title
]
=
N_
(
"Title"
),
case
vlc_meta_Artist
:
return
_
(
"Artist"
);
[
vlc_meta_Artist
]
=
N_
(
"Artist"
),
case
vlc_meta_Genre
:
return
_
(
"Genre"
);
[
vlc_meta_Genre
]
=
N_
(
"Genre"
),
case
vlc_meta_Copyright
:
return
_
(
"Copyright"
);
[
vlc_meta_Copyright
]
=
N_
(
"Copyright"
),
case
vlc_meta_Album
:
return
_
(
"Album"
);
[
vlc_meta_Album
]
=
N_
(
"Album"
),
case
vlc_meta_TrackNumber
:
return
_
(
"Track number"
);
[
vlc_meta_TrackNumber
]
=
N_
(
"Track number"
),
case
vlc_meta_Description
:
return
_
(
"Description"
);
[
vlc_meta_Description
]
=
N_
(
"Description"
),
case
vlc_meta_Rating
:
return
_
(
"Rating"
);
[
vlc_meta_Rating
]
=
N_
(
"Rating"
),
case
vlc_meta_Date
:
return
_
(
"Date"
);
[
vlc_meta_Date
]
=
N_
(
"Date"
),
case
vlc_meta_Setting
:
return
_
(
"Setting"
);
[
vlc_meta_Setting
]
=
N_
(
"Setting"
),
case
vlc_meta_URL
:
return
_
(
"URL"
);
[
vlc_meta_URL
]
=
N_
(
"URL"
),
case
vlc_meta_Language
:
return
_
(
"Language"
);
[
vlc_meta_Language
]
=
N_
(
"Language"
),
case
vlc_meta_NowPlaying
:
return
_
(
"Now Playing"
);
[
vlc_meta_NowPlaying
]
=
N_
(
"Now Playing"
),
case
vlc_meta_Publisher
:
return
_
(
"Publisher"
);
[
vlc_meta_Publisher
]
=
N_
(
"Publisher"
),
case
vlc_meta_EncodedBy
:
return
_
(
"Encoded by"
);
[
vlc_meta_EncodedBy
]
=
N_
(
"Encoded by"
),
case
vlc_meta_ArtworkURL
:
return
_
(
"Artwork URL"
);
[
vlc_meta_ArtworkURL
]
=
N_
(
"Artwork URL"
),
case
vlc_meta_TrackID
:
return
_
(
"Track ID"
);
[
vlc_meta_TrackID
]
=
N_
(
"Track ID"
),
};
default:
abort
();
}
assert
(
meta_type
<
(
sizeof
(
posix_names
)
/
sizeof
(
posix_names
[
0
])));
return
vlc_gettext
(
posix_names
[
meta_type
]);
};
};
...
...
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