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
d601ddbb
Commit
d601ddbb
authored
Jul 11, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return 64-bits values for integer object variables
parent
8daf472e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
include/vlc_variables.h
include/vlc_variables.h
+8
-8
src/config/cmdline.c
src/config/cmdline.c
+2
-2
src/input/vlmshell.c
src/input/vlmshell.c
+2
-2
src/misc/variables.c
src/misc/variables.c
+1
-1
src/osd/osd.c
src/osd/osd.c
+1
-1
src/text/strings.c
src/text/strings.c
+3
-3
No files found.
include/vlc_variables.h
View file @
d601ddbb
...
...
@@ -292,7 +292,7 @@ int var_SetAddress( vlc_object_t *p_obj, const char *psz_name, void *ptr )
* \param psz_name The name of the variable
*/
LIBVLC_USED
static
inline
int
var_GetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
64_t
var_GetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
vlc_value_t
val
;
if
(
!
var_GetChecked
(
p_obj
,
psz_name
,
VLC_VAR_INTEGER
,
&
val
)
)
...
...
@@ -408,7 +408,7 @@ static inline void *var_GetAddress( vlc_object_t *p_obj, const char *psz_name )
* \param p_obj the object that holds the variable
* \param psz_name the name of the variable
*/
static
inline
int
var_IncInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
64_t
var_IncInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
vlc_value_t
val
;
val
.
i_int
=
1
;
...
...
@@ -422,7 +422,7 @@ static inline int var_IncInteger( vlc_object_t *p_obj, const char *psz_name )
* \param p_obj the object that holds the variable
* \param psz_name the name of the variable
*/
static
inline
int
var_DecInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
64_t
var_DecInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
vlc_value_t
val
;
val
.
i_int
=
-
1
;
...
...
@@ -431,7 +431,7 @@ static inline int var_DecInteger( vlc_object_t *p_obj, const char *psz_name )
}
#define var_DecInteger(a,b) var_DecInteger( VLC_OBJECT(a), b )
static
inline
u
nsigned
var_OrInteger
(
vlc_object_t
*
obj
,
const
char
*
name
,
static
inline
u
int64_t
var_OrInteger
(
vlc_object_t
*
obj
,
const
char
*
name
,
unsigned
v
)
{
vlc_value_t
val
;
...
...
@@ -441,7 +441,7 @@ static inline unsigned var_OrInteger( vlc_object_t *obj, const char *name,
}
#define var_OrInteger(a,b,c) var_OrInteger(VLC_OBJECT(a),b,c)
static
inline
u
nsigned
var_NAndInteger
(
vlc_object_t
*
obj
,
const
char
*
name
,
static
inline
u
int64_t
var_NAndInteger
(
vlc_object_t
*
obj
,
const
char
*
name
,
unsigned
v
)
{
vlc_value_t
val
;
...
...
@@ -458,7 +458,7 @@ static inline unsigned var_NAndInteger( vlc_object_t *obj, const char *name,
* \param psz_name The name of the variable
*/
LIBVLC_USED
static
inline
int
var_CreateGetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
64_t
var_CreateGetInteger
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
var_Create
(
p_obj
,
psz_name
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
return
var_GetInteger
(
p_obj
,
psz_name
);
...
...
@@ -554,7 +554,7 @@ static inline void *var_CreateGetAddress( vlc_object_t *p_obj,
* \param psz_name The name of the variable
*/
LIBVLC_USED
static
inline
int
var_CreateGetIntegerCommand
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
static
inline
int
64_t
var_CreateGetIntegerCommand
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
)
{
var_Create
(
p_obj
,
psz_name
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
|
VLC_VAR_ISCOMMAND
);
...
...
@@ -666,7 +666,7 @@ static inline bool var_InheritBool( vlc_object_t *obj, const char *name )
#define var_InheritBool(o, n) var_InheritBool(VLC_OBJECT(o), n)
LIBVLC_USED
static
inline
int
var_InheritInteger
(
vlc_object_t
*
obj
,
const
char
*
name
)
static
inline
int
64_t
var_InheritInteger
(
vlc_object_t
*
obj
,
const
char
*
name
)
{
vlc_value_t
val
;
...
...
src/config/cmdline.c
View file @
d601ddbb
...
...
@@ -257,7 +257,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
case
CONFIG_ITEM_INTEGER
:
var_Create
(
p_this
,
psz_name
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_this
,
psz_name
,
strtol
(
state
.
optarg
,
NULL
,
0
));
strtol
l
(
state
.
optarg
,
NULL
,
0
));
break
;
case
CONFIG_ITEM_FLOAT
:
var_Create
(
p_this
,
psz_name
,
VLC_VAR_FLOAT
);
...
...
@@ -304,7 +304,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
else
{
var_SetInteger
(
p_this
,
name
,
strtol
(
state
.
optarg
,
NULL
,
0
)
);
strtol
l
(
state
.
optarg
,
NULL
,
0
)
);
}
break
;
case
CONFIG_ITEM_BOOL
:
...
...
src/input/vlmshell.c
View file @
d601ddbb
...
...
@@ -1373,8 +1373,8 @@ static vlm_message_t *vlm_ShowMedia( vlm_media_sys_t *p_media )
APPEND_INPUT_INFO
(
"time"
,
"%"
PRIi64
,
Time
);
APPEND_INPUT_INFO
(
"length"
,
"%"
PRIi64
,
Time
);
APPEND_INPUT_INFO
(
"rate"
,
"%f"
,
Float
);
APPEND_INPUT_INFO
(
"title"
,
"%
d"
,
Integer
);
APPEND_INPUT_INFO
(
"chapter"
,
"%
d"
,
Integer
);
APPEND_INPUT_INFO
(
"title"
,
"%
"
PRId64
,
Integer
);
APPEND_INPUT_INFO
(
"chapter"
,
"%
"
PRId64
,
Integer
);
APPEND_INPUT_INFO
(
"can-seek"
,
"%d"
,
Bool
);
}
#undef APPEND_INPUT_INFO
...
...
src/misc/variables.c
View file @
d601ddbb
...
...
@@ -1054,7 +1054,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
break
;
case
VLC_VAR_INTEGER
:
val
.
i_int
=
strtol
(
psz_value
,
NULL
,
0
);
val
.
i_int
=
strtol
l
(
psz_value
,
NULL
,
0
);
break
;
case
VLC_VAR_FLOAT
:
...
...
src/osd/osd.c
View file @
d601ddbb
...
...
@@ -399,7 +399,7 @@ void osd_MenuActivate( vlc_object_t *p_this )
var_InheritInteger
(
p_osd
,
p_button
->
psz_action
)
);
#if defined(OSD_MENU_DEBUG)
msg_Dbg
(
p_osd
,
"select (%d, %s)"
,
var_InheritInteger
(
p_osd
,
p_button
->
psz_action
),
(
int
)
var_InheritInteger
(
p_osd
,
p_button
->
psz_action
),
p_button
->
psz_action
);
#endif
}
...
...
src/text/strings.c
View file @
d601ddbb
...
...
@@ -764,7 +764,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
case
'B'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%
d"
,
snprintf
(
buf
,
10
,
"%
"
PRId64
,
var_GetInteger
(
p_input
,
"bit-rate"
)
/
1000
);
}
else
...
...
@@ -774,7 +774,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
case
'C'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%
d"
,
snprintf
(
buf
,
10
,
"%
"
PRId64
,
var_GetInteger
(
p_input
,
"chapter"
)
);
}
else
...
...
@@ -800,7 +800,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
case
'I'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%
d"
,
snprintf
(
buf
,
10
,
"%
"
PRId64
,
var_GetInteger
(
p_input
,
"title"
)
);
}
else
...
...
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