#define PVAE_NUM_PENDING_CMDS 10
#define PVAE_NUM_PENDING_EVENTS 10
+#define TURN_ON_VERBOSE_LOGS 0
+
+#if TURN_ON_VERBOSE_LOGS
+#include <utils/Log.h>
+#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()
iNodeUtil.Stop(iDataSourceNodes);
if (iEncoderNodes.size() > 0)
iNodeUtil.Stop(iEncoderNodes);
+ iNodeUtil.Stop(iComposerNodes);
return PVMFPending;
default:
return PVMFSuccess;
}
+#if TURN_ON_VERBOSE_LOGS
+#undef PVLOGGER_LOGMSG
+#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);
+#endif
+
{
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);
}