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
722ab9f1
Commit
722ab9f1
authored
Apr 22, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist-tree has only 2 meaningful values now
parent
1f26dd3f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
20 deletions
+7
-20
include/vlc_playlist.h
include/vlc_playlist.h
+1
-2
src/libvlc-module.c
src/libvlc-module.c
+3
-9
src/playlist/engine.c
src/playlist/engine.c
+1
-4
src/playlist/tree.c
src/playlist/tree.c
+2
-5
No files found.
include/vlc_playlist.h
View file @
722ab9f1
...
@@ -189,8 +189,7 @@ struct playlist_t
...
@@ -189,8 +189,7 @@ struct playlist_t
playlist_item_t
*
p_local_onelevel
;
/** < "Playlist" in ONELEVEL view */
playlist_item_t
*
p_local_onelevel
;
/** < "Playlist" in ONELEVEL view */
playlist_item_t
*
p_ml_onelevel
;
/** < "Library" in ONELEVEL view */
playlist_item_t
*
p_ml_onelevel
;
/** < "Library" in ONELEVEL view */
bool
b_always_tree
;
/**< Always display as tree */
bool
b_tree
;
/**< Display as a tree */
bool
b_never_tree
;
/**< Never display as tree */
bool
b_doing_ml
;
/**< Doing media library stuff,
bool
b_doing_ml
;
/**< Doing media library stuff,
* get quicker */
* get quicker */
...
...
src/libvlc-module.c
View file @
722ab9f1
...
@@ -1121,14 +1121,10 @@ static const char *ppsz_albumart_descriptions[] =
...
@@ -1121,14 +1121,10 @@ static const char *ppsz_albumart_descriptions[] =
"The media library is automatically saved and reloaded each time you " \
"The media library is automatically saved and reloaded each time you " \
"start VLC." )
"start VLC." )
#define PLTREE_TEXT N_("
Use
playlist tree")
#define PLTREE_TEXT N_("
Display
playlist tree")
#define PLTREE_LONGTEXT N_( \
#define PLTREE_LONGTEXT N_( \
"The playlist can use a tree to categorize some items, like the " \
"The playlist can use a tree to categorize some items, like the " \
"contents of a directory. \"Default\" means that the tree will only " \
"contents of a directory." )
"be used when really needed." )
static
int
pi_pltree_values
[]
=
{
0
,
1
,
2
};
static
const
char
*
ppsz_pltree_descriptions
[]
=
{
N_
(
"Default"
),
N_
(
"Always"
),
N_
(
"Never"
)
};
/*****************************************************************************
/*****************************************************************************
...
@@ -1868,9 +1864,7 @@ vlc_module_begin();
...
@@ -1868,9 +1864,7 @@ vlc_module_begin();
add_bool
(
"play-and-exit"
,
0
,
NULL
,
PAE_TEXT
,
PAE_LONGTEXT
,
false
);
add_bool
(
"play-and-exit"
,
0
,
NULL
,
PAE_TEXT
,
PAE_LONGTEXT
,
false
);
add_bool
(
"play-and-stop"
,
0
,
NULL
,
PAS_TEXT
,
PAS_LONGTEXT
,
false
);
add_bool
(
"play-and-stop"
,
0
,
NULL
,
PAS_TEXT
,
PAS_LONGTEXT
,
false
);
add_bool
(
"media-library"
,
1
,
NULL
,
ML_TEXT
,
ML_LONGTEXT
,
false
);
add_bool
(
"media-library"
,
1
,
NULL
,
ML_TEXT
,
ML_LONGTEXT
,
false
);
add_integer
(
"playlist-tree"
,
0
,
NULL
,
PLTREE_TEXT
,
PLTREE_LONGTEXT
,
add_bool
(
"playlist-tree"
,
0
,
NULL
,
PLTREE_TEXT
,
PLTREE_LONGTEXT
,
false
);
true
);
change_integer_list
(
pi_pltree_values
,
ppsz_pltree_descriptions
,
0
);
add_string
(
"open"
,
""
,
NULL
,
OPEN_TEXT
,
OPEN_LONGTEXT
,
false
);
add_string
(
"open"
,
""
,
NULL
,
OPEN_TEXT
,
OPEN_LONGTEXT
,
false
);
change_need_restart
();
change_need_restart
();
...
...
src/playlist/engine.c
View file @
722ab9f1
...
@@ -62,7 +62,6 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
...
@@ -62,7 +62,6 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
static
const
char
playlist_name
[]
=
"playlist"
;
static
const
char
playlist_name
[]
=
"playlist"
;
playlist_t
*
p_playlist
;
playlist_t
*
p_playlist
;
bool
b_save
;
bool
b_save
;
int
i_tree
;
/* Allocate structure */
/* Allocate structure */
p_playlist
=
vlc_custom_create
(
p_parent
,
sizeof
(
*
p_playlist
),
p_playlist
=
vlc_custom_create
(
p_parent
,
sizeof
(
*
p_playlist
),
...
@@ -95,9 +94,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
...
@@ -95,9 +94,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
p_playlist
->
b_reset_currently_playing
=
true
;
p_playlist
->
b_reset_currently_playing
=
true
;
p_playlist
->
last_rebuild_date
=
0
;
p_playlist
->
last_rebuild_date
=
0
;
i_tree
=
var_CreateGetBool
(
p_playlist
,
"playlist-tree"
);
p_playlist
->
b_tree
=
var_CreateGetBool
(
p_playlist
,
"playlist-tree"
);
p_playlist
->
b_always_tree
=
(
i_tree
==
1
);
p_playlist
->
b_never_tree
=
(
i_tree
==
2
);
p_playlist
->
b_doing_ml
=
false
;
p_playlist
->
b_doing_ml
=
false
;
...
...
src/playlist/tree.c
View file @
722ab9f1
...
@@ -319,9 +319,6 @@ void playlist_NodesPairCreate( playlist_t *p_playlist, const char *psz_name,
...
@@ -319,9 +319,6 @@ void playlist_NodesPairCreate( playlist_t *p_playlist, const char *psz_name,
/**
/**
* Get the node in the preferred tree from a node in one of category
* Get the node in the preferred tree from a node in one of category
* or onelevel tree.
* or onelevel tree.
* For example, for the SAP node, it will return the node in the category
* tree if --playlist-tree is not set to never, because the SAP node prefers
* category
*/
*/
playlist_item_t
*
playlist_GetPreferredNode
(
playlist_t
*
p_playlist
,
playlist_item_t
*
playlist_GetPreferredNode
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_node
)
playlist_item_t
*
p_node
)
...
@@ -329,7 +326,7 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
...
@@ -329,7 +326,7 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
int
i
;
int
i
;
if
(
p_node
->
p_parent
==
p_playlist
->
p_root_category
)
if
(
p_node
->
p_parent
==
p_playlist
->
p_root_category
)
{
{
if
(
p_playlist
->
b_
always_
tree
)
if
(
p_playlist
->
b_tree
)
return
p_node
;
return
p_node
;
for
(
i
=
0
;
i
<
p_playlist
->
p_root_onelevel
->
i_children
;
i
++
)
for
(
i
=
0
;
i
<
p_playlist
->
p_root_onelevel
->
i_children
;
i
++
)
{
{
...
@@ -340,7 +337,7 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
...
@@ -340,7 +337,7 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
}
}
else
if
(
p_node
->
p_parent
==
p_playlist
->
p_root_onelevel
)
else
if
(
p_node
->
p_parent
==
p_playlist
->
p_root_onelevel
)
{
{
if
(
p_playlist
->
b_never
_tree
)
if
(
!
p_playlist
->
b
_tree
)
return
p_node
;
return
p_node
;
for
(
i
=
0
;
i
<
p_playlist
->
p_root_category
->
i_children
;
i
++
)
for
(
i
=
0
;
i
<
p_playlist
->
p_root_category
->
i_children
;
i
++
)
{
{
...
...
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