This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Stop a multimedia graph
int32_t MmStop(const void *element);
mmedia
If element is a graph, this function signals all of the filters in the graph to stop. If element is a filter, the function signals that filter to stop. MmStop() calls the MediaControl->Stop() for each filter to signal the stop.
Once all signals have been sent, the function waits for the Status() function in the MediaControl interface instance of each filter to return MM_STATUS_STOPPED.
Call this function for a graph only once, just before you detach (MmDetach()) and destroy (Destroy()) all the filters in the graph.
// Assuming the graph is created and previously started: MmStop(graph); // Assuming the given filter is created and hooked up, // and for some reason we want to stop it: MmStop(filter);
Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
MmPause(), MmResume(), MmStart()