Commit af6b0c4a authored by Laurent Aimar's avatar Laurent Aimar

Fixed direct3d open error handling.

At least a non allocated lock was released.
parent 10ce85d6
...@@ -167,7 +167,9 @@ static int OpenVideo( vlc_object_t *p_this ) ...@@ -167,7 +167,9 @@ static int OpenVideo( vlc_object_t *p_this )
if( VLC_SUCCESS != Direct3DVoutCreate( p_vout ) ) if( VLC_SUCCESS != Direct3DVoutCreate( p_vout ) )
{ {
msg_Err( p_vout, "Direct3D could not be initialized !"); msg_Err( p_vout, "Direct3D could not be initialized !");
goto error; Direct3DVoutRelease( p_vout );
free( p_vout->p_sys );
return VLC_EGENERIC;
} }
/* Initialisations */ /* Initialisations */
......
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