It is provided for convenience for interfaces.
/* We are about to die. Reattach video output to p_vlc. */
vout_Request( p_dec, p_dec->p_owner->p_vout, NULL );
+ var_SetBool( p_dec->p_owner->p_input, "intf-change-vout", true );
}
#ifdef ENABLE_SOUT
p_sys->p_vout = vout_Request( p_dec, p_sys->p_vout,
&p_dec->fmt_out.video );
+ var_SetBool( p_sys->p_input, "intf-change-vout", true );
if( p_sys->p_vout == NULL )
{
msg_Err( p_dec, "failed to create video output" );
* - can-pause
* - can-record (if a stream can be recorded while playing)
* - teletext-es to get the index of spu track that is teletext --1 if no teletext)
- * * For intf callback upon changes
+ * * For intf callback upon changes:
* - intf-change
+ * - intf-change-vout for when a vout is created or destroyed
* - rate-change for when playback rate changes
* TODO explain when Callback is called
* TODO complete this list (?)
var_SetBool( p_input, "intf-change", true );
var_Create( p_input, "rate-change", VLC_VAR_BOOL );
var_SetBool( p_input, "rate-change", true );
+
+ var_Create( p_input, "intf-change-vout", VLC_VAR_BOOL );
+ var_SetBool( p_input, "intf-change-vout", true );
}
/* Add all callbacks