+/*****************************************************************************
+ * StateChange: State change callback
+ *****************************************************************************/
+static int StateChange( vlc_object_t *p_this, const char *psz_var,
+ vlc_value_t oldval, vlc_value_t newval, void *param )
+{
+ VLC_UNUSED(p_this); VLC_UNUSED(psz_var); VLC_UNUSED(oldval);
+ intf_thread_t *p_intf = (intf_thread_t *)param;
+ if( p_intf->b_dead )
+ return VLC_EGENERIC;
+ if( newval.i_int >= END_S )
+ return SendToTelepathy( p_intf, "" );
+ return VLC_SUCCESS;
+}
+