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
b33f6553
Commit
b33f6553
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Search on artist and album
* Remove some debug
parent
3790497d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/playlist/item.c
src/playlist/item.c
+0
-2
src/playlist/search.c
src/playlist/search.c
+5
-1
No files found.
src/playlist/item.c
View file @
b33f6553
...
...
@@ -357,13 +357,11 @@ int playlist_BothAddInput( playlist_t *p_playlist,
/* Add to category */
p_item
=
playlist_ItemNewFromInput
(
p_playlist
,
p_input
);
if
(
p_item
==
NULL
)
return
VLC_EGENERIC
;
fprintf
(
stderr
,
"Adding to CATEGORY
\n
"
);
AddItem
(
p_playlist
,
p_item
,
p_direct_parent
,
i_pos
);
/* Add to onelevel */
p_item
=
playlist_ItemNewFromInput
(
p_playlist
,
p_input
);
if
(
p_item
==
NULL
)
return
VLC_EGENERIC
;
fprintf
(
stderr
,
"Adding to ONE
\n
"
);
p_up
=
p_direct_parent
;
while
(
p_up
->
p_parent
!=
p_playlist
->
p_root_category
)
...
...
src/playlist/search.c
View file @
b33f6553
...
...
@@ -99,8 +99,12 @@ int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
{
playlist_LiveSearchUpdate
(
p_playlist
,
p_item
,
psz_string
);
}
#define META_MATCHES( field ) ( p_item->p_input->p_meta && \
p_item->p_input->p_meta->psz_##field && \
strcasestr( p_item->p_input->p_meta->psz_##field, psz_string ) )
/* Todo: Filter on all fields */
if
(
strcasestr
(
p_item
->
p_input
->
psz_name
,
psz_string
)
)
if
(
strcasestr
(
p_item
->
p_input
->
psz_name
,
psz_string
)
||
META_MATCHES
(
artist
)
||
META_MATCHES
(
album
)
)
p_item
->
i_flags
&=
~
PLAYLIST_DBL_FLAG
;
else
p_item
->
i_flags
|=
PLAYLIST_DBL_FLAG
;
...
...
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