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
a02b83a7
Commit
a02b83a7
authored
Jan 19, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib: change just a bit the code.
parent
c2f8a645
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+3
-9
No files found.
modules/meta_engine/taglib.cpp
View file @
a02b83a7
...
...
@@ -131,15 +131,9 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_t* p_demux, demux_meta_t*
* but in our case it will be a '\0'
* terminated string */
char
psz_ufid
[
64
];
int
j
=
0
;
int
max_size
=
p_ufid
->
identifier
().
size
()
<
63
?
p_ufid
->
identifier
().
size
()
:
63
;
while
(
j
<
max_size
)
{
psz_ufid
[
j
]
=
p_ufid
->
identifier
()[
j
];
j
++
;
}
psz_ufid
[
j
]
=
'\0'
;
int
max_size
=
__MIN
(
p_ufid
->
identifier
().
size
(),
63
);
strncmp
(
psz_ufid
,
p_ufid
->
identifier
().
data
(),
max_size
);
psz_ufid
[
max_size
]
=
'\0'
;
vlc_meta_SetTrackID
(
p_meta
,
psz_ufid
);
}
}
...
...
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