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
6d316cc7
Commit
6d316cc7
authored
Dec 10, 2003
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes a infinite loop in the search function.
parent
31d87e5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+10
-11
No files found.
modules/gui/macosx/playlist.m
View file @
6d316cc7
...
...
@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: playlist.m,v 1.4
6 2003/11/20 02:39:09 hartma
n Exp $
* $Id: playlist.m,v 1.4
7 2003/12/10 12:57:12 bigbe
n Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net>
...
...
@@ -265,7 +265,7 @@
-
(
IBAction
)
searchItem
:(
id
)
sender
{
int
i_current
=
0
;
int
i_current
=
-
1
;
NSString
*
o_current_name
;
NSString
*
o_current_author
;
...
...
@@ -280,15 +280,17 @@
if
([
o_table_view
selectedRow
]
==
[
o_table_view
numberOfRows
]
-
1
)
{
i_current
=
0
;
i_current
=
-
1
;
}
else
{
i_current
=
[
o_table_view
selectedRow
]
+
1
;
i_current
=
[
o_table_view
selectedRow
];
}
while
(
i_current
!=
[
o_table_view
selectedRow
])
do
{
i_current
++
;
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
o_current_name
=
[
NSString
stringWithUTF8String
:
p_playlist
->
pp_items
[
i_current
]
->
psz_name
];
...
...
@@ -306,13 +308,10 @@
}
if
(
i_current
==
[
o_table_view
numberOfRows
]
-
1
)
{
i_current
=
0
;
}
else
{
i_current
++
;
i_current
=
-
1
;
}
}
while
(
i_current
!=
[
o_table_view
selectedRow
]);
vlc_object_release
(
p_playlist
);
}
...
...
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