Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
488bcb3b
Commit
488bcb3b
authored
Jul 08, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fingerprinter: remove duplicate code
Close() already clears the array (while destroying it).
parent
7474ff21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
modules/misc/fingerprinter.c
modules/misc/fingerprinter.c
+0
-9
No files found.
modules/misc/fingerprinter.c
View file @
488bcb3b
...
...
@@ -336,13 +336,6 @@ static void fill_metas_with_results( fingerprint_request_t *p_r, acoustid_finger
/*****************************************************************************
* Run :
*****************************************************************************/
static
void
cancelRun
(
void
*
p_arg
)
{
fingerprinter_sys_t
*
p_sys
=
(
fingerprinter_sys_t
*
)
p_arg
;
if
(
vlc_array_count
(
p_sys
->
processing
.
queue
)
)
vlc_array_clear
(
p_sys
->
processing
.
queue
);
}
static
void
Run
(
fingerprinter_thread_t
*
p_fingerprinter
)
{
fingerprinter_sys_t
*
p_sys
=
p_fingerprinter
->
p_sys
;
...
...
@@ -359,7 +352,6 @@ static void Run( fingerprinter_thread_t *p_fingerprinter )
vlc_mutex_lock
(
&
p_sys
->
processing
.
lock
);
// L0
mutex_cleanup_push
(
&
p_sys
->
processing
.
lock
);
vlc_cleanup_push
(
cancelRun
,
p_sys
);
// C1
//**
for
(
p_sys
->
i
=
0
;
p_sys
->
i
<
vlc_array_count
(
p_sys
->
processing
.
queue
);
p_sys
->
i
++
)
{
...
...
@@ -405,7 +397,6 @@ static void Run( fingerprinter_thread_t *p_fingerprinter )
var_TriggerCallback
(
p_fingerprinter
,
"results-available"
);
vlc_array_clear
(
p_sys
->
processing
.
queue
);
}
vlc_cleanup_pop
(
);
// C1
//**
vlc_cleanup_run
();
// L0
}
...
...
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