Permalink
Browse files

xvba: Improve logging when we fail to create decoder session

  • Loading branch information...
fritsch authored and FernetMenta committed Jan 12, 2012
1 parent 892821b commit 0d94bf7eef87b49dc3e578da3ffc07b58eb27727
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
@@ -585,6 +585,14 @@ bool CDecoder::CreateSession(AVCodecContext* avctx)
if (Success != g_XVBA_vtable.CreateDecode(&sessionInput, &sessionOutput))
{
SetError(__FUNCTION__, "failed to create decoder session", __LINE__);
+ CLog::Log(LOGERROR, "Decoder failed with following stats: m_surfaceWidth %u, m_surfaceHeight %u,"
+ " m_vidWidth %u, m_vidHeight %u, coded_width %d, coded_height %d",
+ m_surfaceWidth,
+ m_surfaceHeight,
+ m_vidWidth,
+ m_vidHeight,
+ avctx->coded_width,
+ avctx->coded_height);
return false;
}
m_xvbaSession = sessionOutput.session;

0 comments on commit 0d94bf7

Please sign in to comment.