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
b604f90e
Commit
b604f90e
authored
Dec 22, 2010
by
Srikanth Raju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ML: Fix binary search
parent
b74d2d8c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/media_library/sql_media_library.c
modules/media_library/sql_media_library.c
+3
-3
No files found.
modules/media_library/sql_media_library.c
View file @
b604f90e
...
...
@@ -60,7 +60,7 @@ static int CreateInputItemFromMedia( media_library_t *p_ml,
struct
ml_table_elt
{
int
column_id
;
char
column_name
[];
char
column_name
[
20
];
};
static
const
struct
ml_table_elt
ml_table_map
[]
=
...
...
@@ -486,9 +486,9 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array,
int
mid
=
(
low
+
high
)
/
2
;
char
*
mid_val
=
ml_table_map
[
mid
].
column_name
;
int
cmp
=
strcmp
(
mid_val
,
res
(
0
,
col
)
);
if
(
cmp
>
0
)
if
(
cmp
<
0
)
low
=
mid
+
1
;
else
if
(
cmp
<
0
)
else
if
(
cmp
>
0
)
high
=
mid
-
1
;
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