Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c3119df2
Commit
c3119df2
authored
Feb 16, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: correctly set the attachment:// URL for embedded covers
parent
212e7579
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+11
-0
No files found.
modules/demux/mkv/matroska_segment_parse.cpp
View file @
c3119df2
...
...
@@ -1008,6 +1008,17 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments )
{
memcpy
(
new_attachment
->
p_data
,
img_data
.
GetBuffer
(),
img_data
.
GetSize
()
);
sys
.
stored_attachments
.
push_back
(
new_attachment
);
if
(
!
strncmp
(
new_attachment
->
mimeType
(),
"image/"
,
6
)
)
{
char
*
psz_url
;
if
(
asprintf
(
&
psz_url
,
"attachment://%s"
,
new_attachment
->
fileName
()
)
==
-
1
)
continue
;
if
(
!
sys
.
meta
)
sys
.
meta
=
vlc_meta_New
();
vlc_meta_SetArtURL
(
sys
.
meta
,
psz_url
);
free
(
psz_url
);
}
}
else
{
...
...
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