/// Callback function, closes the xine port void AudioDataOutputXT::closePort(xine_audio_port_t *port_gen, xine_stream_t *stream) { debug() << Q_FUNC_INFO << " closing port " << port_gen; post_audio_port_t *port = (post_audio_port_t*)port_gen; // This is the same as closing the port, according to comments in the Xine source port->stream = NULL; port->original_port->close(port->original_port, stream); // Decrease the reference counter in the port _x_post_dec_usage(port); }
static void fooviz_port_close(xine_audio_port_t *port_gen, xine_stream_t *stream ) { post_audio_port_t *port = (post_audio_port_t *)port_gen; post_plugin_fooviz_t *this = (post_plugin_fooviz_t *)port->post; port->stream = NULL; this->vo_port->close(this->vo_port, XINE_ANON_STREAM); this->metronom->set_master(this->metronom, NULL); port->original_port->close(port->original_port, stream ); _x_post_dec_usage(port); }