static void stdin_plugin_dispose (input_plugin_t *this_gen ) { stdin_input_plugin_t *this = (stdin_input_plugin_t *) this_gen; if (this->nbc) nbc_close (this->nbc); if ((this->fh != STDIN_FILENO) && (this->fh != -1)) close(this->fh); free (this->mrl); free (this); }
static void pnm_plugin_dispose (input_plugin_t *this_gen) { pnm_input_plugin_t *this = (pnm_input_plugin_t *) this_gen; if (this->pnm) { pnm_close (this->pnm); this->pnm = NULL; } if (this->nbc) { nbc_close (this->nbc); this->nbc = NULL; } if(this->mrl) free(this->mrl); free (this); }
static void mms_plugin_dispose (input_plugin_t *this_gen) { mms_input_plugin_t *this = (mms_input_plugin_t *) this_gen; if (this->mms) mms_close (this->mms); if (this->mmsh) mmsh_close (this->mmsh); this->mms = NULL; this->mmsh = NULL; if (this->nbc) { nbc_close (this->nbc); this->nbc = NULL; } free(this->mrl); free (this); }
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); }