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
825c4185
Commit
825c4185
authored
Nov 19, 2012
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: construct proper URL to album art.
parent
cf79e2b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
modules/access/bluray.c
modules/access/bluray.c
+15
-2
No files found.
modules/access/bluray.c
View file @
825c4185
...
...
@@ -47,6 +47,7 @@
#include <vlc_atomic.h>
#include <vlc_dialog.h>
/* BD+/AACS warnings */
#include <vlc_vout.h>
/* vout_PutSubpicture / subpicture_t */
#include <vlc_url.h>
/* vlc_path2uri */
#include <libbluray/bluray.h>
#include <libbluray/keys.h>
...
...
@@ -1102,8 +1103,20 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
// if (meta->di_set_number > 0) vlc_meta_SetTrackNum(p_meta, meta->di_set_number);
// if (meta->di_num_sets > 0) vlc_meta_AddExtra(p_meta, "Discs numbers in Set", meta->di_num_sets);
if
(
meta
->
thumb_count
>
0
&&
meta
->
thumbnails
)
{
vlc_meta_SetArtURL
(
p_meta
,
meta
->
thumbnails
[
0
].
path
);
if
(
meta
->
thumb_count
>
0
&&
meta
->
thumbnails
)
{
char
*
psz_thumbpath
;
if
(
asprintf
(
&
psz_thumbpath
,
"%s"
DIR_SEP
"BDMV"
DIR_SEP
"META"
DIR_SEP
"DL"
DIR_SEP
"%s"
,
p_sys
->
psz_bd_path
,
meta
->
thumbnails
[
0
].
path
)
>
0
)
{
char
*
psz_thumburl
=
vlc_path2uri
(
psz_thumbpath
,
"file"
);
if
(
unlikely
(
psz_thumburl
==
NULL
)
)
return
VLC_ENOMEM
;
vlc_meta_SetArtURL
(
p_meta
,
psz_thumburl
);
free
(
psz_thumburl
);
}
free
(
psz_thumbpath
);
}
return
VLC_SUCCESS
;
...
...
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