Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d555c8a9
Commit
d555c8a9
authored
Aug 18, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search.c: Fix 21193.
parent
7363adb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
src/playlist/search.c
src/playlist/search.c
+8
-21
No files found.
src/playlist/search.c
View file @
d555c8a9
...
...
@@ -115,6 +115,7 @@ int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
p_playlist
->
b_reset_currently_playing
=
VLC_TRUE
;
for
(
i
=
0
;
i
<
p_root
->
i_children
;
i
++
)
{
playlist_item_t
*
p_item
=
p_root
->
pp_children
[
i
];
if
(
p_item
->
i_children
>
-
1
)
{
...
...
@@ -122,30 +123,16 @@ int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
}
else
{
char
*
psz_name_matches
,
*
psz_artist_matches
,
*
psz_album_matches
;
char
*
psz_field
,
*
psz_field_case
;
psz_field
=
input_item_GetName
(
p_i
);
psz_name_matches
=
strcasestr
(
psz_field
,
psz_string
);
free
(
psz_field
);
psz_field
=
input_item_GetMeta
(
p_item
->
p_input
,
vlc_meta_Artist
);
psz_field_case
=
strcasestr
(
input_item_GetMeta
(
p_item
->
p_input
,
vlc_meta_Artist
),
psz_string
);
psz_artist_matches
=
(
psz_field
&&
psz_field_case
);
free
(
psz_field
);
free
(
psz_field_case
);
psz_field
=
input_item_GetMeta
(
p_item
->
p_input
,
vlc_meta_Album
);
psz_field_case
=
strcasestr
(
input_item_GetMeta
(
p_item
->
p_input
,
vlc_meta_Album
),
psz_string
);
psz_album_matches
=
(
psz_field
&&
psz_field_case
);
free
(
psz_field
);
free
(
psz_field_case
);
if
(
psz_name_matches
||
psz_artist_matches
||
psz_album_matches
)
if
(
strcasestr
(
p_item
->
p_input
->
psz_name
,
psz_string
)
||
/* Soon to be replaced by vlc_meta_Title */
input_item_MetaMatch
(
p_item
->
p_input
,
vlc_meta_Album
,
psz_string
)
||
input_item_MetaMatch
(
p_item
->
p_input
,
vlc_meta_Artist
,
psz_string
)
)
{
p_item
->
i_flags
&=
~
PLAYLIST_DBL_FLAG
;
}
else
{
p_item
->
i_flags
|=
PLAYLIST_DBL_FLAG
;
}
}
}
vlc_cond_signal
(
&
p_playlist
->
object_wait
);
...
...
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