mmr_context_destroy()

Destroy a context

Synopsis:

#include <mm/renderer.h>
int mmr_context_destroy(mmr_context_t *ctxt)

Arguments:

ctxt
A context handle

Library:

mmrndclient

Description:

Destroy the context that the handle refers to and close the handle. Implicitly stop any playback and detach any input or outputs. If any other handles to this context still exist, attempts to use them will fail. At this point, you should close those handles, either explicitly through an API call or implicitly by disconnecting from mm-renderer or terminating the process.

Returns:

Zero on success, -1 on failure (check errno). The handle becomes invalid either way.