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
2e7e2246
Commit
2e7e2246
authored
Mar 17, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use native C/C++ boolean type
parent
709f415c
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
14 deletions
+16
-14
include/vlc/vlc.h
include/vlc/vlc.h
+5
-3
modules/access/bda/bda.c
modules/access/bda/bda.c
+1
-1
modules/access/dvb/access.c
modules/access/dvb/access.c
+1
-1
modules/access/fake.c
modules/access/fake.c
+1
-1
modules/demux/live555.cpp
modules/demux/live555.cpp
+1
-1
modules/gui/macosx/voutgl.m
modules/gui/macosx/voutgl.m
+1
-1
modules/gui/macosx/voutqt.m
modules/gui/macosx/voutqt.m
+1
-1
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
+1
-1
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+1
-1
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+1
-1
src/input/es_out.c
src/input/es_out.c
+2
-2
No files found.
include/vlc/vlc.h
View file @
2e7e2246
...
...
@@ -38,12 +38,14 @@
# ifdef __cplusplus
extern
"C"
{
# else
# include <stdbool.h>
# endif
/*****************************************************************************
* Our custom types
*****************************************************************************/
typedef
int
vlc_bool_t
;
typedef
bool
vlc_bool_t
;
typedef
struct
vlc_list_t
vlc_list_t
;
typedef
struct
vlc_object_t
vlc_object_t
;
...
...
@@ -131,8 +133,8 @@ struct vlc_list_t
/*****************************************************************************
* Booleans
*****************************************************************************/
#define VLC_FALSE
0
#define VLC_TRUE
1
#define VLC_FALSE
false
#define VLC_TRUE
true
/*****************************************************************************
* Playlist
...
...
modules/access/bda/bda.c
View file @
2e7e2246
...
...
@@ -525,7 +525,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_PRIVATE_ID_STATE
:
/* 11 */
i_int
=
(
int
)
va_arg
(
args
,
int
);
b_bool
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
b_bool
=
(
bool
)
va_arg
(
args
,
in
t
);
break
;
case
ACCESS_SET_PRIVATE_ID_CA
:
/* 12 -From Demux */
break
;
...
...
modules/access/dvb/access.c
View file @
2e7e2246
...
...
@@ -551,7 +551,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case
ACCESS_SET_PRIVATE_ID_STATE
:
i_int
=
(
int
)
va_arg
(
args
,
int
);
/* Private data (pid for now)*/
b_bool
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
/* b_selected */
b_bool
=
(
bool
)
va_arg
(
args
,
in
t
);
/* b_selected */
if
(
!
p_sys
->
b_budget_mode
)
{
/* FIXME we may want to give the real type (me ?, I don't ;) */
...
...
modules/access/fake.c
View file @
2e7e2246
...
...
@@ -153,7 +153,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_SUCCESS
;
case
DEMUX_SET_PAUSE_STATE
:
b
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
b
=
(
bool
)
va_arg
(
args
,
in
t
);
if
(
b
)
{
p_sys
->
i_pause_pts
=
mdate
();
...
...
modules/demux/live555.cpp
View file @
2e7e2246
...
...
@@ -1374,7 +1374,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
double
d_npt
=
(
double
)
p_sys
->
i_npt
/
I64C
(
1000000
);
int
i
;
b_bool
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
b_bool
=
(
bool
)
va_arg
(
args
,
in
t
);
if
(
p_sys
->
rtsp
==
NULL
)
return
VLC_EGENERIC
;
...
...
modules/gui/macosx/voutgl.m
View file @
2e7e2246
...
...
@@ -271,7 +271,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
switch
(
i_query
)
{
case
VOUT_SET_STAY_ON_TOP
:
b_arg
=
va_arg
(
args
,
vlc_bool_
t
);
b_arg
=
(
bool
)
va_arg
(
args
,
in
t
);
[
p_vout
->
p_sys
->
o_vout_view
setOnTop
:
b_arg
];
return
VLC_SUCCESS
;
...
...
modules/gui/macosx/voutqt.m
View file @
2e7e2246
...
...
@@ -459,7 +459,7 @@ static int ControlVideo( vout_thread_t *p_vout, int i_query, va_list args )
switch
(
i_query
)
{
case
VOUT_SET_STAY_ON_TOP
:
b_arg
=
va_arg
(
args
,
vlc_bool_
t
);
b_arg
=
(
bool
)
va_arg
(
args
,
in
t
);
[
p_vout
->
p_sys
->
o_vout_view
setOnTop
:
b_arg
];
return
VLC_SUCCESS
;
...
...
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
View file @
2e7e2246
...
...
@@ -147,7 +147,7 @@ int cocoaglvoutviewControl( vout_thread_t *p_vout, int i_query, va_list args )
switch
(
i_query
)
{
case
VOUT_SET_STAY_ON_TOP
:
b_arg
=
va_arg
(
args
,
vlc_bool_
t
);
b_arg
=
(
bool
)
va_arg
(
args
,
in
t
);
[[
p_vout
->
p_sys
->
o_glview
container
]
setOnTop
:
b_arg
];
return
VLC_SUCCESS
;
...
...
modules/video_output/msw/events.c
View file @
2e7e2246
...
...
@@ -1129,7 +1129,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
#ifdef MODULE_NAME_IS_wingapi
case
VOUT_SET_FOCUS
:
b_bool
=
va_arg
(
args
,
vlc_bool_
t
);
b_bool
=
(
bool
)
va_arg
(
args
,
in
t
);
p_vout
->
p_sys
->
b_parent_focus
=
b_bool
;
if
(
b_bool
)
GXResume
();
else
if
(
!
p_vout
->
p_sys
->
b_focus
)
GXSuspend
();
...
...
modules/video_output/x11/xcommon.c
View file @
2e7e2246
...
...
@@ -3139,7 +3139,7 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
return
vout_ControlWindow
(
p_vout
,
(
void
*
)
p_vout
->
p_sys
->
p_win
->
owner_window
,
i_query
,
args
);
b_arg
=
va_arg
(
args
,
vlc_bool_
t
);
b_arg
=
(
bool
)
va_arg
(
args
,
in
t
);
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
#ifdef MODULE_NAME_IS_xvmc
xvmc_context_reader_lock
(
&
p_vout
->
p_sys
->
xvmc_lock
);
...
...
src/input/es_out.c
View file @
2e7e2246
...
...
@@ -1562,7 +1562,7 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
{
case
ES_OUT_SET_ES_STATE
:
es
=
(
es_out_id_t
*
)
va_arg
(
args
,
es_out_id_t
*
);
b
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
b
=
(
bool
)
va_arg
(
args
,
in
t
);
if
(
b
&&
!
EsIsSelected
(
es
)
)
{
EsSelect
(
out
,
es
);
...
...
@@ -1584,7 +1584,7 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
case
ES_OUT_SET_ACTIVE
:
{
b
=
(
vlc_bool_t
)
va_arg
(
args
,
vlc_bool_
t
);
b
=
(
bool
)
va_arg
(
args
,
in
t
);
p_sys
->
b_active
=
b
;
/* Needed ? */
if
(
b
)
...
...
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