static void rtsp_streaming_close (struct stream *s) { rtsp_session_t *rtsp = NULL; rtsp = (rtsp_session_t *) s->streaming_ctrl->data; if (rtsp) rtsp_session_end (rtsp); }
static void rtsp_plugin_dispose (input_plugin_t *this_gen) { rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen; if (this->rtsp) { rtsp_session_end (this->rtsp); this->rtsp = NULL; } if (this->nbc) { nbc_close (this->nbc); this->nbc = NULL; } if(this->mrl) free(this->mrl); if(this->public_mrl) free(this->public_mrl); free (this); }