Commit e315c9b4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

libvlc_video_set_viewport: Make sure we don't crash if view is NULL.

parent d5aaf6b2
......@@ -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" );
/* if clip is NULL, then use view rectangle as clip */
if( NULL == clip )
if( !clip )
clip = view;
/* set as default for future vout instances */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment