Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
57d74513
Commit
57d74513
authored
Oct 08, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playlist search: proper case-insensitive search (fix #4214)
parent
c862c0fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/playlist/search.c
src/playlist/search.c
+6
-5
No files found.
src/playlist/search.c
View file @
57d74513
...
...
@@ -26,7 +26,8 @@
#include <assert.h>
#include <vlc_common.h>
#include "vlc_playlist.h"
#include <vlc_playlist.h>
#include <vlc_charset.h>
#include "playlist_internal.h"
/***************************************************************************
...
...
@@ -134,12 +135,12 @@ static bool playlist_LiveSearchUpdateInternal( playlist_item_t *p_root,
psz_title
=
p_item
->
p_input
->
psz_name
;
const
char
*
psz_album
=
vlc_meta_Get
(
p_item
->
p_input
->
p_meta
,
vlc_meta_Album
);
const
char
*
psz_artist
=
vlc_meta_Get
(
p_item
->
p_input
->
p_meta
,
vlc_meta_Artist
);
b_enable
=
(
psz_title
&&
strcasestr
(
psz_title
,
psz_string
)
)
||
(
psz_album
&&
strcasestr
(
psz_album
,
psz_string
)
)
||
(
psz_artist
&&
strcasestr
(
psz_artist
,
psz_string
)
);
b_enable
=
(
psz_title
&&
vlc_
strcasestr
(
psz_title
,
psz_string
)
)
||
(
psz_album
&&
vlc_
strcasestr
(
psz_album
,
psz_string
)
)
||
(
psz_artist
&&
vlc_
strcasestr
(
psz_artist
,
psz_string
)
);
}
else
b_enable
=
p_item
->
p_input
->
psz_name
&&
strcasestr
(
p_item
->
p_input
->
psz_name
,
psz_string
);
b_enable
=
p_item
->
p_input
->
psz_name
&&
vlc_
strcasestr
(
p_item
->
p_input
->
psz_name
,
psz_string
);
vlc_mutex_unlock
(
&
p_item
->
p_input
->
lock
);
}
...
...
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