Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Log specific OMX_EventError events reported from OMX components
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dong committed Nov 7, 2009
1 parent 537674d commit 9816ec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp
Expand Up @@ -34,6 +34,9 @@
// needed for capability and config
#include "pv_omx_config_parser.h"

#include "utils/Log.h"
#undef LOG_TAG
#define LOG_TAG "PVOMXAudDecNode"

#define CONFIG_SIZE_AND_VERSION(param) \
param.nSize=sizeof(param); \
Expand Down Expand Up @@ -1947,7 +1950,7 @@ OMX_ERRORTYPE PVMFOMXAudioDecNode::EventHandlerProcessing(OMX_OUT OMX_HANDLETYPE

case OMX_EventError:
{

LOGE("Ln %d OMX_EventError nData1 %d nData2 %d", __LINE__, aData1, aData2);
if (aData1 == (OMX_U32) OMX_ErrorStreamCorrupt)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_ERR,
Expand Down
5 changes: 5 additions & 0 deletions nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp
Expand Up @@ -33,6 +33,10 @@
#include "pv_omxcore.h"
#include "OMX_Video.h"

#include "utils/Log.h"
#undef LOG_TAG
#define LOG_TAG "PVOMXVidDecNode"

#define CONFIG_SIZE_AND_VERSION(param) \
param.nSize=sizeof(param); \
param.nVersion.s.nVersionMajor = SPECVERSIONMAJOR; \
Expand Down Expand Up @@ -1366,6 +1370,7 @@ OMX_ERRORTYPE PVMFOMXVideoDecNode::EventHandlerProcessing(OMX_OUT OMX_HANDLETYPE
case OMX_EventError:
{

LOGE("Ln %d OMX_EventError nData1 %d nData2 %d", __LINE__, aData1, aData2);
if (aData1 == (OMX_U32) OMX_ErrorStreamCorrupt)
{
PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_ERR,
Expand Down

0 comments on commit 9816ec5

Please sign in to comment.