Destroy a context.
#include <mm/renderer/renderer.h>
int mmr_context_destroy(mmr_context_t *ctxt)
BlackBerry 10.0.0
A context handle.
Destroy the context the handle refers to and close the handle. Implicitly stop any playback and detach any inputs or outputs.
In addition to explicitly calling mmr_context_destroy() with a primary or secondary handle, a context is also destroyed when the primary handle is closed for any reason, including:
If any other handles to this context still exist, attempts to use them will fail. At this point, you should close those handles by calling mmr_context_close() on each one, disconnecting by calling mmr_disconnect(), or terminating the process.
Zero on success, -1 on failure (check errno). The handle becomes invalid either way.