Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
bad4cc4f
Commit
bad4cc4f
authored
Sep 23, 2015
by
Hugo Beauzée-Luyssen
Browse files
VLCMetadataService: Constify
parent
b8cf9667
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/metadata_services/VLCMetadataService.cpp
View file @
bad4cc4f
...
...
@@ -47,7 +47,7 @@ bool VLCMetadataService::run( FilePtr file, void* data )
return
true
;
}
ServiceStatus
VLCMetadataService
::
handleMediaMeta
(
FilePtr
file
,
VLC
::
Media
&
media
)
ServiceStatus
VLCMetadataService
::
handleMediaMeta
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
{
auto
tracks
=
media
.
tracks
();
if
(
tracks
.
size
()
==
0
)
...
...
@@ -87,7 +87,7 @@ ServiceStatus VLCMetadataService::handleMediaMeta( FilePtr file, VLC::Media& med
return
StatusSuccess
;
}
bool
VLCMetadataService
::
parseAudioFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
bool
VLCMetadataService
::
parseAudioFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
{
auto
albumTitle
=
media
.
meta
(
libvlc_meta_Album
);
if
(
albumTitle
.
length
()
==
0
)
...
...
@@ -137,7 +137,7 @@ bool VLCMetadataService::parseAudioFile( FilePtr file, VLC::Media& media )
return
true
;
}
bool
VLCMetadataService
::
parseVideoFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
bool
VLCMetadataService
::
parseVideoFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
{
auto
title
=
media
.
meta
(
libvlc_meta_Title
);
if
(
title
.
length
()
==
0
)
...
...
src/metadata_services/VLCMetadataService.h
View file @
bad4cc4f
...
...
@@ -15,9 +15,9 @@ class VLCMetadataService : public IMetadataService
virtual
bool
run
(
FilePtr
file
,
void
*
data
);
private:
ServiceStatus
handleMediaMeta
(
FilePtr
file
,
VLC
::
Media
&
media
);
bool
parseAudioFile
(
FilePtr
file
,
VLC
::
Media
&
media
);
bool
parseVideoFile
(
FilePtr
file
,
VLC
::
Media
&
media
);
ServiceStatus
handleMediaMeta
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
;
bool
parseAudioFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
;
bool
parseVideoFile
(
FilePtr
file
,
VLC
::
Media
&
media
)
const
;
VLC
::
Instance
m_instance
;
IMetadataServiceCb
*
m_cb
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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