mm_error_code_t

mm-renderer error codes

Synopsis:

#include <renderer.h>

 typedef enum mm_error_code {
    MMR_ERROR_NONE,
    MMR_ERROR_UNKNOWN,
    MMR_ERROR_INVALID_PARAMETER,
    MMR_ERROR_INVALID_STATE,
    MMR_ERROR_UNSUPPORTED_VALUE,
    MMR_ERROR_UNSUPPORTED_MEDIA_TYPE,
    MMR_ERROR_MEDIA_PROTECTED,
    MMR_ERROR_UNSUPPORTED_OPERATION,
    MMR_ERROR_NO_MEMORY,
    MMR_ERROR_RESOURCE_UNAVAILABLE,
    MMR_ERROR_MEDIA_DRM_NO_RIGHTS,
    MMR_ERROR_MEDIA_DRM_OUTPUT_PROTECTION,
    } mm_error_code_t;

Description:

The enumerated type mm_error_code_t defines the error codes returned by mm-renderer. Its values are described in the following table:

Value Description
MMR_ERROR_NONE No error occurred.
MMR_ERROR_UNKNOWN An unknown error occurred.
MMR_ERROR_INVALID_PARAMETER A invalid parameter, such as an incorrect output ID or an out-of-range seek string, was provided by the application.
MMR_ERROR_INVALID_STATE The application attempted an operation that wasn't appropriate for mm-renderer's state. For example, an attempt to play or seek while there's no input attached or to interact with a context after it's been destroyed will produce this error.
MMR_ERROR_UNSUPPORTED_VALUE An unsupported value was provided by the application, for example an input or output type that wasn't recognized by any plugin, or a play speed that was out of range.
MMR_ERROR_UNSUPPORTED_MEDIA_TYPE There's no available plugin that recognizes the attached input or output media format.
MMR_ERROR_MEDIA_PROTECTED The media format was recognized but couldn't be played by mm-renderer because of Digital Rights Management (DRM).
MMR_ERROR_UNSUPPORTED_OPERATION The application attempted an operation that wasn't supported for the current configuration, for example a seek or set speed call with media that doesn't support it, or a request to attach or detach output with a plugin that doesn't support it.
MMR_ERROR_NO_MEMORY mm-renderer wasn't able to allocate memory for the requested operation.
MMR_ERROR_RESOURCE_UNAVAILABLE The required resource was unavailable.
MMR_ERROR_MEDIA_DRM_NO_RIGHTS The media is protected by DRM, and there aren't sufficient rights to play the file.
MMR_ERROR_MEDIA_DRM_OUTPUT_PROTECTION The DRM license doesn't permit playing the media to the specified output.

Class:

QNX Neutrino