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
75dcb251
Commit
75dcb251
authored
Nov 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove language from plugin cache
parent
49d120b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
src/modules/cache.c
src/modules/cache.c
+1
-17
No files found.
src/modules/cache.c
View file @
75dcb251
...
...
@@ -84,7 +84,7 @@ static int CacheSaveConfig ( module_t *, FILE * );
/* Sub-version number
* (only used to avoid breakage in dev version when cache structure changes) */
#define CACHE_SUBVERSION_NUM
4
#define CACHE_SUBVERSION_NUM
5
/* Format string for the cache filename */
#define CACHENAME_FORMAT \
...
...
@@ -108,7 +108,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
FILE
*
file
;
int
i
,
j
,
i_size
,
i_read
;
char
p_cachestring
[
sizeof
(
"cache "
COPYRIGHT_MESSAGE
)];
char
p_cachelang
[
6
],
p_lang
[
6
];
int
i_cache
;
module_cache_t
**
pp_cache
=
0
;
int32_t
i_file_size
,
i_marker
;
...
...
@@ -208,17 +207,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
return
;
}
/* Check the language hasn't changed */
sprintf
(
p_lang
,
"%5.5s"
,
_
(
"C"
)
);
i_size
=
5
;
i_read
=
fread
(
p_cachelang
,
1
,
i_size
,
file
);
if
(
i_read
!=
i_size
||
memcmp
(
p_cachelang
,
p_lang
,
i_size
)
)
{
msg_Warn
(
p_this
,
"This doesn't look like a valid plugins cache "
"(language changed)"
);
fclose
(
file
);
return
;
}
/* Check header marker */
i_read
=
fread
(
&
i_marker
,
1
,
sizeof
(
i_marker
),
file
);
if
(
i_read
!=
sizeof
(
i_marker
)
||
...
...
@@ -531,10 +519,6 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
if
(
fwrite
(
&
i_file_size
,
sizeof
(
i_file_size
),
1
,
file
)
!=
1
)
goto
error
;
/* Language */
if
(
fprintf
(
file
,
"%5.5s"
,
_
(
"C"
))
==
EOF
)
goto
error
;
/* Header marker */
i_file_size
=
ftell
(
file
);
if
(
fwrite
(
&
i_file_size
,
sizeof
(
i_file_size
),
1
,
file
)
!=
1
)
...
...
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