Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
e315c9b4
Commit
e315c9b4
authored
Jun 13, 2008
by
Pierre d'Herbemont
Browse files
libvlc_video_set_viewport: Make sure we don't crash if view is NULL.
parent
d5aaf6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/control/video.c
View file @
e315c9b4
...
...
@@ -292,13 +292,14 @@ void libvlc_video_set_viewport( libvlc_instance_t *p_instance,
const
libvlc_rectangle_t
*
view
,
const
libvlc_rectangle_t
*
clip
,
libvlc_exception_t
*
p_e
)
{
if
(
NULL
==
view
)
if
(
!
view
)
{
libvlc_exception_raise
(
p_e
,
"viewport is NULL"
);
return
;
}
/* if clip is NULL, then use view rectangle as clip */
if
(
NULL
==
clip
)
if
(
!
clip
)
clip
=
view
;
/* set as default for future vout instances */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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