Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
79dfff4d
Commit
79dfff4d
authored
Oct 22, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- apply proper const casting since C++ has become more stringent
parent
5e0f332e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
include/configuration.h
include/configuration.h
+2
-2
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+6
-6
No files found.
include/configuration.h
View file @
79dfff4d
...
@@ -373,7 +373,7 @@ int config_AutoSaveConfigFile( vlc_object_t * );
...
@@ -373,7 +373,7 @@ int config_AutoSaveConfigFile( vlc_object_t * );
#define change_integer_list( list, list_text, list_update_func ) \
#define change_integer_list( list, list_text, list_update_func ) \
p_config[i_config].i_list = sizeof(list)/sizeof(int); \
p_config[i_config].i_list = sizeof(list)/sizeof(int); \
p_config[i_config].pi_list = list; \
p_config[i_config].pi_list =
(int *)
list; \
p_config[i_config].ppsz_list_text = list_text;
p_config[i_config].ppsz_list_text = list_text;
#define change_integer_range( min, max ) \
#define change_integer_range( min, max ) \
...
@@ -391,7 +391,7 @@ int config_AutoSaveConfigFile( vlc_object_t * );
...
@@ -391,7 +391,7 @@ int config_AutoSaveConfigFile( vlc_object_t * );
p_config[i_config].ppf_action = (vlc_callback_t *) \
p_config[i_config].ppf_action = (vlc_callback_t *) \
realloc( p_config[i_config].ppf_action, \
realloc( p_config[i_config].ppf_action, \
(p_config[i_config].i_action + 1) * sizeof(void *) ); \
(p_config[i_config].i_action + 1) * sizeof(void *) ); \
p_config[i_config].ppsz_action_text = (char **)\
p_config[i_config].ppsz_action_text = (c
onst c
har **)\
realloc( p_config[i_config].ppsz_action_text, \
realloc( p_config[i_config].ppsz_action_text, \
(p_config[i_config].i_action + 1) * sizeof(void *) ); \
(p_config[i_config].i_action + 1) * sizeof(void *) ); \
p_config[i_config].ppf_action[p_config[i_config].i_action] = pf_action; \
p_config[i_config].ppf_action[p_config[i_config].i_action] = pf_action; \
...
...
modules/access/dshow/dshow.cpp
View file @
79dfff4d
...
@@ -77,12 +77,12 @@ static const char *ppsz_adev_text[] = { N_("Default"), N_("None") };
...
@@ -77,12 +77,12 @@ static const char *ppsz_adev_text[] = { N_("Default"), N_("None") };
static
int
pi_tuner_input
[]
=
{
0
,
1
,
2
};
static
int
pi_tuner_input
[]
=
{
0
,
1
,
2
};
static
const
char
*
ppsz_tuner_input_text
[]
=
static
const
char
*
ppsz_tuner_input_text
[]
=
{
N_
(
"Default"
),
N_
(
"Cable"
),
N_
(
"Antenna"
)};
{
N_
(
"Default"
),
N_
(
"Cable"
),
N_
(
"Antenna"
)};
static
int
pi_amtuner_mode
[]
=
{
AMTUNER_MODE_DEFAULT
,
static
const
int
pi_amtuner_mode
[]
=
{
AMTUNER_MODE_DEFAULT
,
AMTUNER_MODE_TV
,
AMTUNER_MODE_TV
,
AMTUNER_MODE_FM_RADIO
,
AMTUNER_MODE_FM_RADIO
,
AMTUNER_MODE_AM_RADIO
,
AMTUNER_MODE_AM_RADIO
,
AMTUNER_MODE_DSS
};
AMTUNER_MODE_DSS
};
static
char
*
ppsz_amtuner_mode_text
[]
=
{
N_
(
"Default"
),
static
c
onst
c
har
*
ppsz_amtuner_mode_text
[]
=
{
N_
(
"Default"
),
N_
(
"TV"
),
N_
(
"TV"
),
N_
(
"FM radio"
),
N_
(
"FM radio"
),
N_
(
"AM radio"
),
N_
(
"AM radio"
),
...
@@ -1817,8 +1817,8 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
...
@@ -1817,8 +1817,8 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
/* Keep the 2 first entries */
/* Keep the 2 first entries */
for
(
i
=
2
;
i
<
p_item
->
i_list
;
i
++
)
for
(
i
=
2
;
i
<
p_item
->
i_list
;
i
++
)
{
{
free
(
p_item
->
ppsz_list
[
i
]
);
free
(
const_cast
<
char
*>
(
p_item
->
ppsz_list
[
i
])
);
free
(
p_item
->
ppsz_list_text
[
i
]
);
free
(
const_cast
<
char
*>
(
p_item
->
ppsz_list_text
[
i
])
);
}
}
/* TODO: Remove when no more needed */
/* TODO: Remove when no more needed */
p_item
->
ppsz_list
[
i
]
=
NULL
;
p_item
->
ppsz_list
[
i
]
=
NULL
;
...
@@ -1840,10 +1840,10 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
...
@@ -1840,10 +1840,10 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
if
(
!
list_devices
.
size
()
)
return
VLC_SUCCESS
;
if
(
!
list_devices
.
size
()
)
return
VLC_SUCCESS
;
p_item
->
ppsz_list
=
p_item
->
ppsz_list
=
(
char
**
)
realloc
(
p_item
->
ppsz_list
,
(
c
onst
c
har
**
)
realloc
(
p_item
->
ppsz_list
,
(
list_devices
.
size
()
+
3
)
*
sizeof
(
char
*
)
);
(
list_devices
.
size
()
+
3
)
*
sizeof
(
char
*
)
);
p_item
->
ppsz_list_text
=
p_item
->
ppsz_list_text
=
(
char
**
)
realloc
(
p_item
->
ppsz_list_text
,
(
c
onst
c
har
**
)
realloc
(
p_item
->
ppsz_list_text
,
(
list_devices
.
size
()
+
3
)
*
sizeof
(
char
*
)
);
(
list_devices
.
size
()
+
3
)
*
sizeof
(
char
*
)
);
list
<
string
>::
iterator
iter
;
list
<
string
>::
iterator
iter
;
...
...
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