Skip to content

Commit

Permalink
temp: Some hacks to help profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jan 26, 2015
1 parent 92e1530 commit 0324cbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ void CActiveAE::StateMachine(int signal, Protocol *port, Message *msg)
CActiveAEStream *stream;
streamMsg = (MsgStreamNew*)msg->data;
stream = CreateStream(streamMsg);
CLog::Log(LOGNOTICE, "ActiveAE::%s - NEWSTREAM %p %p", __FUNCTION__, streamMsg, stream);
if(stream)
{
msg->Reply(CActiveAEDataProtocol::ACC, &stream, sizeof(CActiveAEStream*));
Expand Down Expand Up @@ -1228,6 +1229,7 @@ CActiveAEStream* CActiveAE::CreateStream(MsgStreamNew *streamMsg)
}
if (hasRawStream || (hasStream && AE_IS_RAW(streamMsg->format.m_dataFormat)))
{
CLog::Log(LOGNOTICE, "CActiveAE::CreateStream - raw");
return NULL;
}

Expand Down Expand Up @@ -1256,6 +1258,7 @@ CActiveAEStream* CActiveAE::CreateStream(MsgStreamNew *streamMsg)

m_streams.push_back(stream);

CLog::Log(LOGNOTICE, "CActiveAE::CreateStream - %p", stream);
return stream;
}

Expand Down Expand Up @@ -2749,11 +2752,13 @@ IAEStream *CActiveAE::MakeStream(enum AEDataFormat dataFormat, unsigned int samp
msg.options = options;

Message *reply;
CLog::Log(LOGNOTICE, "ActiveAE::%s - about to create stream", __FUNCTION__);
if (m_dataPort.SendOutMessageSync(CActiveAEDataProtocol::NEWSTREAM,
&reply,10000,
&msg, sizeof(MsgStreamNew)))
{
bool success = reply->signal == CActiveAEControlProtocol::ACC;
CLog::Log(LOGNOTICE, "ActiveAE::%s - created stream : %d", __FUNCTION__, success);
if (success)
{
CActiveAEStream *stream = *(CActiveAEStream**)reply->data;
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/VideoRenderers/MMALRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define CLASSNAME "CMMALRenderer"

#ifdef _DEBUG
#define MMAL_DEBUG_VERBOSE
//#define MMAL_DEBUG_VERBOSE
#endif

static void vout_control_port_cb(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer)
Expand Down Expand Up @@ -375,7 +375,7 @@ void CMMALRenderer::FlipPage(int source)
#endif
omvb->Acquire();
mmal_port_send_buffer(m_vout_input, omvb->mmal_buffer);
} else assert(0);
} //else assert(0);
}
else if (m_format == RENDER_FMT_YUV420P)
{
Expand Down
2 changes: 2 additions & 0 deletions xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ CDVDPlayerVideo::CDVDPlayerVideo( CDVDClock* pClock

CDVDPlayerVideo::~CDVDPlayerVideo()
{
CLog::Log(LOGNOTICE, "drop:%d skip:%d", m_iDroppedFrames, g_renderManager.GetSkippedFrames());

StopThread();
g_VideoReferenceClock.Stop();
}
Expand Down

0 comments on commit 0324cbc

Please sign in to comment.