Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
babd97c1
Commit
babd97c1
authored
Aug 13, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the plugin file name in the cache once rather than twice
parent
a94e6eb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/modules/cache.c
src/modules/cache.c
+6
-4
No files found.
src/modules/cache.c
View file @
babd97c1
...
@@ -229,7 +229,6 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
...
@@ -229,7 +229,6 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
if
(
CacheLoadConfig
(
module
,
file
)
!=
VLC_SUCCESS
)
if
(
CacheLoadConfig
(
module
,
file
)
!=
VLC_SUCCESS
)
goto
error
;
goto
error
;
LOAD_STRING
(
module
->
psz_filename
);
LOAD_STRING
(
module
->
domain
);
LOAD_STRING
(
module
->
domain
);
if
(
module
->
domain
!=
NULL
)
if
(
module
->
domain
!=
NULL
)
vlc_bindtextdomain
(
module
->
domain
);
vlc_bindtextdomain
(
module
->
domain
);
...
@@ -515,7 +514,6 @@ static int CacheSaveBank (FILE *file, const module_cache_t *cache,
...
@@ -515,7 +514,6 @@ static int CacheSaveBank (FILE *file, const module_cache_t *cache,
if
(
CacheSaveConfig
(
file
,
module
))
if
(
CacheSaveConfig
(
file
,
module
))
goto
error
;
goto
error
;
SAVE_STRING
(
module
->
psz_filename
);
SAVE_STRING
(
module
->
domain
);
SAVE_STRING
(
module
->
domain
);
i_submodule
=
module
->
submodule_count
;
i_submodule
=
module
->
submodule_count
;
...
@@ -649,12 +647,16 @@ module_t *CacheFind (module_cache_t *cache, size_t count,
...
@@ -649,12 +647,16 @@ module_t *CacheFind (module_cache_t *cache, size_t count,
{
{
while
(
count
>
0
)
while
(
count
>
0
)
{
{
if
(
!
strcmp
(
cache
->
path
,
path
)
if
(
cache
->
path
!=
NULL
&&
!
strcmp
(
cache
->
path
,
path
)
&&
cache
->
mtime
==
st
->
st_mtime
&&
cache
->
mtime
==
st
->
st_mtime
&&
cache
->
size
==
st
->
st_size
)
&&
cache
->
size
==
st
->
st_size
)
{
{
module_t
*
module
=
cache
->
p_module
;
module_t
*
module
=
cache
->
p_module
;
cache
->
p_module
=
NULL
;
/* Return NULL next time */
cache
->
p_module
=
NULL
;
module
->
psz_filename
=
cache
->
path
;
cache
->
path
=
NULL
;
return
module
;
return
module
;
}
}
cache
++
;
cache
++
;
...
...
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