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
a2d82490
Commit
a2d82490
authored
Jun 01, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RC OSD: Fix NULL check after deref (CID 109)
parent
3ddc22f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/control/rc.c
modules/control/rc.c
+8
-7
No files found.
modules/control/rc.c
View file @
a2d82490
...
...
@@ -2165,14 +2165,14 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
playlist_t
*
p_playlist
=
NULL
;
int
i_error
=
VLC_SUCCESS
;
vlc_value_t
val
;
int
i_error
=
VLC_EGENERIC
;
if
(
!*
newval
.
psz_string
)
{
msg_rc
(
_
(
"Please provide one of the following parameters:"
)
);
msg_rc
(
"[on|off|up|down|left|right|select]"
);
return
i_error
;
return
VLC_EGENERIC
;
}
p_playlist
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -2193,9 +2193,12 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
vlc_object_release
(
p_playlist
);
val
.
psz_string
=
strdup
(
newval
.
psz_string
);
if
(
!
val
.
psz_string
)
return
VLC_ENOMEM
;
if
(
!
strcmp
(
val
.
psz_string
,
"on"
)
||
!
strcmp
(
val
.
psz_string
,
"show"
))
osd_MenuShow
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"off"
)
||
!
strcmp
(
val
.
psz_string
,
"hide"
)
)
else
if
(
!
strcmp
(
val
.
psz_string
,
"off"
)
||
!
strcmp
(
val
.
psz_string
,
"hide"
)
)
osd_MenuHide
(
p_this
);
else
if
(
!
strcmp
(
val
.
psz_string
,
"up"
)
)
osd_MenuUp
(
p_this
);
...
...
@@ -2211,12 +2214,10 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
{
msg_rc
(
_
(
"Please provide one of the following parameters:"
)
);
msg_rc
(
"[on|off|up|down|left|right|select]"
);
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
return
i_error
;
i_error
=
VLC_EGENERIC
;
}
i_error
=
VLC_SUCCESS
;
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
return
i_error
;
}
...
...
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