Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
02359fe0
Commit
02359fe0
authored
Feb 18, 2015
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release lock when thumbnailer is interrupted
CID #1226337
parent
7c506ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
vlc-android/src/org/videolan/vlc/Thumbnailer.java
vlc-android/src/org/videolan/vlc/Thumbnailer.java
+1
-6
No files found.
vlc-android/src/org/videolan/vlc/Thumbnailer.java
View file @
02359fe0
...
...
@@ -149,7 +149,6 @@ public class Thumbnailer implements Runnable {
mVideoBrowser
.
resetBarrier
();
lock
.
lock
();
// Get the id of the file browser item to create its thumbnail.
boolean
interrupted
=
false
;
while
(
mItems
.
size
()
==
0
)
{
try
{
if
(
mVideoBrowser
!=
null
)
{
...
...
@@ -159,15 +158,11 @@ public class Thumbnailer implements Runnable {
totalCount
=
0
;
notEmpty
.
await
();
}
catch
(
InterruptedException
e
)
{
interrupted
=
true
;
lock
.
unlock
()
;
Log
.
i
(
TAG
,
"interruption probably requested by stop()"
);
break
;
}
}
if
(
interrupted
)
{
lock
.
unlock
();
break
;
}
total
=
totalCount
;
MediaWrapper
item
=
mItems
.
poll
();
lock
.
unlock
();
...
...
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