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
0666b4e2
Commit
0666b4e2
authored
Feb 13, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes segfault introduced in [18810]
parent
f7b46de2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/meta_engine/folder.c
modules/meta_engine/folder.c
+6
-5
No files found.
modules/meta_engine/folder.c
View file @
0666b4e2
...
@@ -84,8 +84,9 @@ static int FindMeta( vlc_object_t *p_this )
...
@@ -84,8 +84,9 @@ static int FindMeta( vlc_object_t *p_this )
*
psz_dir
=
'\0'
;
*
psz_dir
=
'\0'
;
}
}
if
(
!
strncmp
(
psz_dir
,
"file://"
,
7
)
)
char
*
psz_path
=
psz_dir
;
psz_dir
+=
7
;
if
(
!
strncmp
(
psz_path
,
"file://"
,
7
)
)
psz_path
+=
7
;
for
(
i
=
0
;
b_have_art
==
VLC_FALSE
&&
i
<
3
;
i
++
)
for
(
i
=
0
;
b_have_art
==
VLC_FALSE
&&
i
<
3
;
i
++
)
{
{
...
@@ -94,19 +95,19 @@ static int FindMeta( vlc_object_t *p_this )
...
@@ -94,19 +95,19 @@ static int FindMeta( vlc_object_t *p_this )
case
0
:
case
0
:
/* Windows Folder.jpg */
/* Windows Folder.jpg */
snprintf
(
psz_filename
,
MAX_PATH
,
snprintf
(
psz_filename
,
MAX_PATH
,
"file://%sFolder.jpg"
,
psz_
dir
);
"file://%sFolder.jpg"
,
psz_
path
);
break
;
break
;
case
1
:
case
1
:
/* Windows AlbumArtSmall.jpg == small version of Folder.jpg */
/* Windows AlbumArtSmall.jpg == small version of Folder.jpg */
snprintf
(
psz_filename
,
MAX_PATH
,
snprintf
(
psz_filename
,
MAX_PATH
,
"file://%sAlbumArtSmall.jpg"
,
psz_
dir
);
"file://%sAlbumArtSmall.jpg"
,
psz_
path
);
break
;
break
;
case
2
:
case
2
:
/* KDE (?) .folder.png */
/* KDE (?) .folder.png */
snprintf
(
psz_filename
,
MAX_PATH
,
snprintf
(
psz_filename
,
MAX_PATH
,
"file://%s.folder.png"
,
psz_
dir
);
"file://%s.folder.png"
,
psz_
path
);
break
;
break
;
}
}
...
...
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