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
cafd2e02
Commit
cafd2e02
authored
Jul 11, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 64-bits for integers in plugin descriptors
parent
6767b442
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
include/vlc_plugin.h
include/vlc_plugin.h
+8
-7
src/config/core.c
src/config/core.c
+2
-5
src/modules/entry.c
src/modules/entry.c
+9
-3
No files found.
include/vlc_plugin.h
View file @
cafd2e02
...
...
@@ -120,8 +120,8 @@ enum vlc_module_properties
/**
* Current plugin ABI version
*/
# define MODULE_SYMBOL 1_2_0
c
# define MODULE_SUFFIX "__1_2_0
c
"
# define MODULE_SYMBOL 1_2_0
d
# define MODULE_SUFFIX "__1_2_0
d
"
/*****************************************************************************
* Add a few defines. You do not want to read this section. Really.
...
...
@@ -273,16 +273,16 @@ enum vlc_module_properties
#define add_int_inner( type, name, text, longtext, advc, cb, v ) \
add_typename_inner( type, name, text, longtext, advc, cb ) \
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int)(v));
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int
64_t
)(v));
#define set_category( i_id ) \
add_type_inner( CONFIG_CATEGORY ) \
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int)(i_id));
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int
64_t
)(i_id));
#define set_subcategory( i_id ) \
add_type_inner( CONFIG_SUBCATEGORY ) \
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int)(i_id));
vlc_config_set (p_config, VLC_CONFIG_VALUE, (int
64_t
)(i_id));
#define set_section( text, longtext ) \
add_typedesc_inner( CONFIG_SECTION, text, longtext )
...
...
@@ -366,7 +366,7 @@ enum vlc_module_properties
#define add_bool( name, v, p_callback, text, longtext, advc ) \
add_typename_inner( CONFIG_ITEM_BOOL, name, text, longtext, advc, \
p_callback ) \
if (v) vlc_config_set (p_config, VLC_CONFIG_VALUE, (int)true);
if (v) vlc_config_set (p_config, VLC_CONFIG_VALUE, (int
64_t
)true);
/* For removed option */
#define add_obsolete_inner( name, type ) \
...
...
@@ -410,7 +410,8 @@ enum vlc_module_properties
(vlc_callback_t)(list_update_func));
#define change_integer_range( minv, maxv ) \
vlc_config_set (p_config, VLC_CONFIG_RANGE, (int)(minv), (int)(maxv));
vlc_config_set (p_config, VLC_CONFIG_RANGE, \
(int64_t)(minv), (int64_t)(maxv));
#define change_float_range( minv, maxv ) \
vlc_config_set (p_config, VLC_CONFIG_RANGE, \
...
...
src/config/core.c
View file @
cafd2e02
...
...
@@ -327,12 +327,9 @@ void config_PutInt( vlc_object_t *p_this, const char *psz_name,
return
;
}
/* if i_min == i_max == 0, then do not use them */
if
((
p_config
->
min
.
i
==
0
)
&&
(
p_config
->
max
.
i
==
0
))
;
else
if
(
i_value
<
p_config
->
min
.
i
)
if
(
i_value
<
p_config
->
min
.
i
)
i_value
=
p_config
->
min
.
i
;
else
if
(
i_value
>
p_config
->
max
.
i
)
if
(
i_value
>
p_config
->
max
.
i
)
i_value
=
p_config
->
max
.
i
;
vlc_rwlock_wrlock
(
&
config_lock
);
...
...
src/modules/entry.c
View file @
cafd2e02
...
...
@@ -28,6 +28,7 @@
#include <vlc_memory.h>
#include <assert.h>
#include <stdarg.h>
#include <limits.h>
#include "modules/modules.h"
#include "config/configuration.h"
...
...
@@ -136,6 +137,11 @@ static module_config_t *vlc_config_create (module_t *module, int type)
}
memset
(
tab
+
confsize
,
0
,
sizeof
(
tab
[
confsize
]));
if
(
IsConfigIntegerType
(
type
))
{
tab
[
confsize
].
max
.
i
=
INT_MAX
;
tab
[
confsize
].
min
.
i
=
INT_MIN
;
}
tab
[
confsize
].
i_type
=
type
;
if
(
type
&
CONFIG_ITEM
)
...
...
@@ -263,7 +269,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
if
(
IsConfigIntegerType
(
item
->
i_type
))
{
item
->
orig
.
i
=
item
->
saved
.
i
=
item
->
value
.
i
=
va_arg
(
ap
,
int
);
item
->
value
.
i
=
va_arg
(
ap
,
int
64_t
);
}
else
if
(
IsConfigFloatType
(
item
->
i_type
))
...
...
@@ -288,8 +294,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
||
item
->
i_type
==
CONFIG_ITEM_MODULE_LIST_CAT
||
item
->
i_type
==
CONFIG_ITEM_MODULE_CAT
)
{
item
->
min
.
i
=
va_arg
(
ap
,
int
);
item
->
max
.
i
=
va_arg
(
ap
,
int
);
item
->
min
.
i
=
va_arg
(
ap
,
int
64_t
);
item
->
max
.
i
=
va_arg
(
ap
,
int
64_t
);
}
else
if
(
IsConfigFloatType
(
item
->
i_type
))
...
...
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