From f94a5e933cbcce72d7031543b08a4e2b78316cbd Mon Sep 17 00:00:00 2001 From: James Dong <> Date: Wed, 25 Mar 2009 15:09:11 -0700 Subject: [PATCH] Automated import from //branches/cupcake/...@142601,142601 --- engines/author/src/pvauthorengine.cpp | 25 ++++++++++++++++++++++ .../src/pvmf_omx_videoenc_node.cpp | 5 ----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/engines/author/src/pvauthorengine.cpp b/engines/author/src/pvauthorengine.cpp index 4729f82b..b7de7d8d 100644 --- a/engines/author/src/pvauthorengine.cpp +++ b/engines/author/src/pvauthorengine.cpp @@ -53,6 +53,25 @@ #define PVAE_NUM_PENDING_CMDS 10 #define PVAE_NUM_PENDING_EVENTS 10 +#define TURN_ON_VERBOSE_LOGS 0 + +#if TURN_ON_VERBOSE_LOGS +#include +#undef LOG_TAG +#define LOG_TAG "PVAE" +#undef PVLOGGER_LOGMSG +#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) JJLOGE MESSAGE +#define LOG_STACK_TRACE(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_STACK_TRACE, m); +#define LOG_DEBUG(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_DEBUG, m); +#define LOG_ERR(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_REL,iLogger,PVLOGMSG_ERR,m); +#define JJLOGE(id, ...) LOGE(__VA_ARGS__) +#else +#define LOG_STACK_TRACE(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_STACK_TRACE, m); +#define LOG_DEBUG(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_LLDBG, iLogger, PVLOGMSG_DEBUG, m); +#define LOG_ERR(m) PVLOGGER_LOGMSG(PVLOGMSG_INST_REL,iLogger,PVLOGMSG_ERR,m); +#endif + + // Define entry point for this DLL OSCL_DLL_ENTRY_POINT_DEFAULT() @@ -1527,6 +1546,7 @@ PVMFStatus PVAuthorEngine::DoStopMaxSizeDuration() iNodeUtil.Stop(iDataSourceNodes); if (iEncoderNodes.size() > 0) iNodeUtil.Stop(iEncoderNodes); + iNodeUtil.Stop(iComposerNodes); return PVMFPending; default: @@ -2797,3 +2817,8 @@ PVMFStatus PVAuthorEngine::DoGetAuthorProductInfoParameter(PvmiKvp*& aParameters return PVMFSuccess; } +#if TURN_ON_VERBOSE_LOGS +#undef PVLOGGER_LOGMSG +#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER); +#endif + diff --git a/nodes/pvomxvideoencnode/src/pvmf_omx_videoenc_node.cpp b/nodes/pvomxvideoencnode/src/pvmf_omx_videoenc_node.cpp index f5945f17..05cd61b4 100644 --- a/nodes/pvomxvideoencnode/src/pvmf_omx_videoenc_node.cpp +++ b/nodes/pvomxvideoencnode/src/pvmf_omx_videoenc_node.cpp @@ -625,12 +625,7 @@ OSCL_EXPORT_REF PVMFCommandId PVMFOMXVideoEncNode::Stop(PVMFSessionId aSession, { LOG_STACK_TRACE((0, "PVMFOMXVideoEncNode::Stop")); PVMFVideoEncNodeCommand cmd; - - // DoFlush before DoStop cmd.Construct(aSession, PVMF_GENERIC_NODE_FLUSH, aContext); - QueueCommandL(cmd); - - cmd.Construct(aSession, PVMF_GENERIC_NODE_STOP, aContext); return QueueCommandL(cmd); } -- 2.11.0