static void ebml_free_plugin (format_plugin_t *plugin, client_t *client) { ebml_source_state_t *ebml_source_state = plugin->_state; refbuf_release (ebml_source_state->header); ebml_destroy (ebml_source_state->ebml); free (ebml_source_state); }
static void ebml_free_plugin(format_plugin_t *plugin) { ebml_source_state_t *ebml_source_state = plugin->_state; refbuf_release(ebml_source_state->header); ebml_destroy(ebml_source_state->ebml); free(ebml_source_state); vorbis_comment_clear(&plugin->vc); free(plugin); }
static void ebml_apply_client (format_plugin_t *plugin, client_t *client) { ebml_source_state_t *ebml_source_state = plugin->_state; const char *s; refbuf_release (ebml_source_state->header); ebml_source_state->header = NULL; ebml_destroy (ebml_source_state->ebml); ebml_source_state->ebml = NULL; free (plugin->contenttype); if (client == NULL) return; s = plugin->parser ? httpp_getvar (plugin->parser, "content-type") : NULL; plugin->contenttype = strdup (s ? s : "video/x-matroska"); ebml_source_state->ebml = ebml_create(); }