From 9816ec5242955fdf9226ff18f2e890df29a407e5 Mon Sep 17 00:00:00 2001 From: James Dong Date: Fri, 6 Nov 2009 16:05:38 -0800 Subject: [PATCH] Log specific OMX_EventError events reported from OMX components --- nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp | 5 ++++- nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp b/nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp index b1159f7a1..f38e8e906 100644 --- a/nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp +++ b/nodes/pvomxaudiodecnode/src/pvmf_omx_audiodec_node.cpp @@ -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); \ @@ -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, diff --git a/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp b/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp index 70f9ddf6b..0193cf5e6 100644 --- a/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp +++ b/nodes/pvomxvideodecnode/src/pvmf_omx_videodec_node.cpp @@ -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; \ @@ -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,