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
3db5293c
Commit
3db5293c
authored
Oct 07, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* opengl: remove NULL from string arrays
* configuration.c: don't crash on NULL values
parent
5563e0d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/video_output/opengl.c
modules/video_output/opengl.c
+2
-2
src/misc/configuration.c
src/misc/configuration.c
+4
-4
No files found.
modules/video_output/opengl.c
View file @
3db5293c
...
@@ -99,9 +99,9 @@ static int SendEvents( vlc_object_t *, char const *,
...
@@ -99,9 +99,9 @@ static int SendEvents( vlc_object_t *, char const *,
"Allows you to select different visual effects.")
"Allows you to select different visual effects.")
static
char
*
ppsz_effects
[]
=
{
static
char
*
ppsz_effects
[]
=
{
"none"
,
"cube"
,
"transparent-cube"
,
NULL
};
"none"
,
"cube"
,
"transparent-cube"
};
static
char
*
ppsz_effects_text
[]
=
{
static
char
*
ppsz_effects_text
[]
=
{
N_
(
"None"
),
N_
(
"Cube"
),
N_
(
"Transparent Cube"
)
,
NULL
};
N_
(
"None"
),
N_
(
"Cube"
),
N_
(
"Transparent Cube"
)
};
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"OpenGL video output"
)
);
set_description
(
_
(
"OpenGL video output"
)
);
...
...
src/misc/configuration.c
View file @
3db5293c
...
@@ -528,8 +528,8 @@ void config_Duplicate( module_t *p_module, module_config_t *p_orig )
...
@@ -528,8 +528,8 @@ void config_Duplicate( module_t *p_module, module_config_t *p_orig )
if
(
p_module
->
p_config
[
i
].
ppsz_list
)
if
(
p_module
->
p_config
[
i
].
ppsz_list
)
{
{
for
(
j
=
0
;
j
<
p_orig
[
i
].
i_list
;
j
++
)
for
(
j
=
0
;
j
<
p_orig
[
i
].
i_list
;
j
++
)
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
=
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
=
p_orig
[
i
].
ppsz_list
[
j
]
?
strdup
(
p_orig
[
i
].
ppsz_list
[
j
]
);
strdup
(
p_orig
[
i
].
ppsz_list
[
j
]
)
:
NULL
;
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
=
NULL
;
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
=
NULL
;
}
}
}
}
...
@@ -540,8 +540,8 @@ void config_Duplicate( module_t *p_module, module_config_t *p_orig )
...
@@ -540,8 +540,8 @@ void config_Duplicate( module_t *p_module, module_config_t *p_orig )
if
(
p_module
->
p_config
[
i
].
ppsz_list_text
)
if
(
p_module
->
p_config
[
i
].
ppsz_list_text
)
{
{
for
(
j
=
0
;
j
<
p_orig
[
i
].
i_list
;
j
++
)
for
(
j
=
0
;
j
<
p_orig
[
i
].
i_list
;
j
++
)
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
_
(
p_orig
[
i
].
ppsz_list_text
[
j
])
?
strdup
(
_
(
p_orig
[
i
].
ppsz_list_text
[
j
]
)
)
;
strdup
(
_
(
p_orig
[
i
].
ppsz_list_text
[
j
]
)
)
:
NULL
;
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
NULL
;
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
NULL
;
}
}
}
}
...
...
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