Commit dd12032d authored by Rémi Duraffort's avatar Rémi Duraffort

vmem: better ordering.

parent 63a67c18
......@@ -164,16 +164,17 @@ static int Init( vout_thread_t *p_vout )
p_vout->p_sys->pf_unlock = (void (*) (void *))(intptr_t)atoll( psz_tmp );
free( psz_tmp );
psz_tmp = var_CreateGetString( p_vout, "vmem-data" );
p_vout->p_sys->p_data = (void *)(intptr_t)atoll( psz_tmp );
free( psz_tmp );
/* pf_lock and pf_unlock are mandatory */
if( !p_vout->p_sys->pf_lock || !p_vout->p_sys->pf_unlock )
{
msg_Err( p_vout, "Invalid lock or unlock callbacks" );
return VLC_EGENERIC;
}
psz_tmp = var_CreateGetString( p_vout, "vmem-data" );
p_vout->p_sys->p_data = (void *)(intptr_t)atoll( psz_tmp );
free( psz_tmp );
I_OUTPUTPICTURES = 0;
/* Initialize the output structure */
......
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