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
285098dc
Commit
285098dc
authored
Feb 07, 2012
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove version sort option. Now uses version sort by default and there's no way to change it :)
parent
d923971d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
modules/access/directory.c
modules/access/directory.c
+2
-17
modules/access/fs.c
modules/access/fs.c
+0
-9
No files found.
modules/access/directory.c
View file @
285098dc
...
@@ -79,7 +79,6 @@ struct access_sys_t
...
@@ -79,7 +79,6 @@ struct access_sys_t
bool
header
;
bool
header
;
int
i_item_count
;
int
i_item_count
;
char
*
xspf_ext
;
char
*
xspf_ext
;
int
(
*
compar
)(
const
char
**
a
,
const
char
**
b
);
};
};
/* Select non-hidden files only */
/* Select non-hidden files only */
...
@@ -88,15 +87,6 @@ static int visible (const char *name)
...
@@ -88,15 +87,6 @@ static int visible (const char *name)
return
name
[
0
]
!=
'.'
;
return
name
[
0
]
!=
'.'
;
}
}
static
int
collate
(
const
char
**
a
,
const
char
**
b
)
{
#ifdef HAVE_STRCOLL
return
strcoll
(
*
a
,
*
b
);
#else
return
strcmp
(
*
a
,
*
b
);
#endif
}
static
int
version
(
const
char
**
a
,
const
char
**
b
)
static
int
version
(
const
char
**
a
,
const
char
**
b
)
{
{
return
strverscmp
(
*
a
,
*
b
);
return
strverscmp
(
*
a
,
*
b
);
...
@@ -144,15 +134,10 @@ int DirInit (access_t *p_access, DIR *handle)
...
@@ -144,15 +134,10 @@ int DirInit (access_t *p_access, DIR *handle)
goto
error
;
goto
error
;
}
}
if
(
var_InheritBool
(
p_access
,
"directory-version-sort"
))
p_sys
->
compar
=
version
;
else
p_sys
->
compar
=
collate
;
root
->
parent
=
NULL
;
root
->
parent
=
NULL
;
root
->
handle
=
handle
;
root
->
handle
=
handle
;
root
->
uri
=
uri
;
root
->
uri
=
uri
;
root
->
filec
=
vlc_loaddir
(
handle
,
&
root
->
filev
,
visible
,
p_sys
->
compar
);
root
->
filec
=
vlc_loaddir
(
handle
,
&
root
->
filev
,
visible
,
version
);
if
(
root
->
filec
<
0
)
if
(
root
->
filec
<
0
)
root
->
filev
=
NULL
;
root
->
filev
=
NULL
;
root
->
i
=
0
;
root
->
i
=
0
;
...
@@ -360,7 +345,7 @@ block_t *DirBlock (access_t *p_access)
...
@@ -360,7 +345,7 @@ block_t *DirBlock (access_t *p_access)
}
}
sub
->
parent
=
current
;
sub
->
parent
=
current
;
sub
->
handle
=
handle
;
sub
->
handle
=
handle
;
sub
->
filec
=
vlc_loaddir
(
handle
,
&
sub
->
filev
,
visible
,
p_sys
->
compar
);
sub
->
filec
=
vlc_loaddir
(
handle
,
&
sub
->
filev
,
visible
,
version
);
if
(
sub
->
filec
<
0
)
if
(
sub
->
filec
<
0
)
sub
->
filev
=
NULL
;
sub
->
filev
=
NULL
;
sub
->
i
=
0
;
sub
->
i
=
0
;
...
...
modules/access/fs.c
View file @
285098dc
...
@@ -48,13 +48,6 @@ static const char *const psz_recursive_list_text[] = {
...
@@ -48,13 +48,6 @@ static const char *const psz_recursive_list_text[] = {
"This is useful if you add directories that contain playlist files " \
"This is useful if you add directories that contain playlist files " \
"for instance. Use a comma-separated list of extensions." )
"for instance. Use a comma-separated list of extensions." )
#define VERSION_SORT_TEXT N_("Use version sort")
#define VERSION_SORT_LONGTEXT N_( \
"When opening a directory, add items in a natural order. " \
"For example, track-1.ogg track-2.ogg track-10.ogg will be sorted " \
"as expected while the default method would sort them as " \
"track-1.ogg track-10.ogg track-2.ogg." )
vlc_module_begin
()
vlc_module_begin
()
set_description
(
N_
(
"File input"
)
)
set_description
(
N_
(
"File input"
)
)
set_shortname
(
N_
(
"File"
)
)
set_shortname
(
N_
(
"File"
)
)
...
@@ -73,8 +66,6 @@ vlc_module_begin ()
...
@@ -73,8 +66,6 @@ vlc_module_begin ()
change_string_list
(
psz_recursive_list
,
psz_recursive_list_text
,
0
)
change_string_list
(
psz_recursive_list
,
psz_recursive_list_text
,
0
)
add_string
(
"ignore-filetypes"
,
"m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa"
,
add_string
(
"ignore-filetypes"
,
"m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa"
,
IGNORE_TEXT
,
IGNORE_LONGTEXT
,
false
)
IGNORE_TEXT
,
IGNORE_LONGTEXT
,
false
)
add_bool
(
"directory-version-sort"
,
false
,
VERSION_SORT_TEXT
,
VERSION_SORT_LONGTEXT
,
false
);
#ifndef HAVE_FDOPENDIR
#ifndef HAVE_FDOPENDIR
add_shortcut
(
"file"
,
"directory"
,
"dir"
)
add_shortcut
(
"file"
,
"directory"
,
"dir"
)
#else
#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