Commit 1ab2a942 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

iomx-dr: fix crash if anwpriv.connect fails

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 00712949
...@@ -2106,7 +2106,12 @@ static void HwBuffer_Init( decoder_t *p_dec, OmxPort *p_port ) ...@@ -2106,7 +2106,12 @@ static void HwBuffer_Init( decoder_t *p_dec, OmxPort *p_port )
msg_Warn( p_dec, "winFromSurface failed" ); msg_Warn( p_dec, "winFromSurface failed" );
goto error; goto error;
} }
p_port->p_hwbuf->anwpriv.connect( p_port->p_hwbuf->window ); if( p_port->p_hwbuf->anwpriv.connect( p_port->p_hwbuf->window ) != 0 ) {
msg_Warn( p_dec, "connect failed" );
p_port->p_hwbuf->native_window.winRelease( p_port->p_hwbuf->window );
p_port->p_hwbuf->window = NULL;
goto error;
}
omx_error = pf_enable_graphic_buffers( p_port->omx_handle, omx_error = pf_enable_graphic_buffers( p_port->omx_handle,
p_port->i_port_index, OMX_TRUE ); p_port->i_port_index, OMX_TRUE );
......
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