EsOutFrameNext( out );
return VLC_SUCCESS;
- case ES_OUT_LOCK:
- vlc_mutex_lock( &p_sys->lock );
- return VLC_SUCCESS;
-
- case ES_OUT_UNLOCK:
- vlc_mutex_unlock( &p_sys->lock );
- return VLC_SUCCESS;
-
default:
msg_Err( p_sys->p_input, "unknown query in es_out_Control" );
return VLC_EGENERIC;
/* Set next frame */
ES_OUT_SET_FRAME_NEXT, /* res=can fail */
-
- /* Lock/Unlock es_out
- * XXX es_out is safe without them, but they ensure coherency between
- * calls if needed (if es_out is called outside of the main thread) */
- ES_OUT_LOCK, /* res=cannot fail */
- ES_OUT_UNLOCK, /* res=cannot fail */
};
static inline mtime_t es_out_GetWakeup( es_out_t *p_out )
{
return es_out_Control( p_out, ES_OUT_SET_FRAME_NEXT );
}
-static inline void es_out_Lock( es_out_t *p_out )
-{
- int i_ret = es_out_Control( p_out, ES_OUT_LOCK );
- assert( !i_ret );
-}
-static inline void es_out_Unlock( es_out_t *p_out )
-{
- int i_ret = es_out_Control( p_out, ES_OUT_UNLOCK );
- assert( !i_ret );
-}
es_out_t *input_EsOutNew( input_thread_t *, int i_rate );
if( !p_input )
return b_force_update;
- es_out_Lock( p_input->p->p_es_out );
-
switch( i_type )
{
case INPUT_CONTROL_SET_DIE:
break;
}
- es_out_Unlock( p_input->p->p_es_out );
-
return b_force_update;
}