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
7ba6fdab
Commit
7ba6fdab
authored
Aug 16, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/meta.c: Better handle NULL meta.
parent
866dd6dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/input/meta.c
src/input/meta.c
+3
-3
No files found.
src/input/meta.c
View file @
7ba6fdab
...
...
@@ -72,7 +72,6 @@ vlc_bool_t input_MetaSatisfied( playlist_t *p_playlist, input_item_t *p_item,
{
(
void
)
p_playlist
;
*
pi_mandatory
=
VLC_META_ENGINE_TITLE
|
VLC_META_ENGINE_ARTIST
;
assert
(
p_item
->
p_meta
);
uint32_t
i_meta
=
input_CurrentMetaFlags
(
p_item
->
p_meta
);
*
pi_mandatory
&=
~
i_meta
;
...
...
@@ -85,8 +84,6 @@ int input_MetaFetch( playlist_t *p_playlist, input_item_t *p_item )
struct
meta_engine_t
*
p_me
;
uint32_t
i_mandatory
,
i_optional
;
assert
(
p_item
->
p_meta
);
input_MetaSatisfied
(
p_playlist
,
p_item
,
&
i_mandatory
,
&
i_optional
);
// Meta shouldn't magically appear
assert
(
i_mandatory
);
...
...
@@ -492,6 +489,9 @@ uint32_t input_CurrentMetaFlags( vlc_meta_t *p_meta )
{
uint32_t
i_meta
=
0
;
if
(
!
p_meta
)
return
0
;
#define CHECK( a, b ) \
if( !EMPTY_STR( vlc_meta_Get( p_meta, vlc_meta_ ## a ) ) ) \
i_meta |= VLC_META_ENGINE_ ## b;
...
...
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