Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

xvba: fix segfault if we tried to play a movie we do not support (xvi…

…d, mpeg-4)
  • Loading branch information...
commit c3aff56ab6c9f76b73117043d35251be3f761a9a 1 parent 8296e4b
@fritsch fritsch authored committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
View
6 xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp
@@ -619,21 +619,21 @@ void CDecoder::DestroySession()
}
m_xvbaBufferPool.data_control_buffers.clear();
- if (m_xvbaBufferPool.data_buffer)
+ if (m_xvbaSession && m_xvbaBufferPool.data_buffer)
{
bufInput.buffer_list = m_xvbaBufferPool.data_buffer;
g_XVBA_vtable.DestroyDecodeBuffers(&bufInput);
}
m_xvbaBufferPool.data_buffer = 0;
- if (m_xvbaBufferPool.picture_descriptor_buffer)
+ if (m_xvbaSession && m_xvbaBufferPool.picture_descriptor_buffer)
{
bufInput.buffer_list = m_xvbaBufferPool.picture_descriptor_buffer;
g_XVBA_vtable.DestroyDecodeBuffers(&bufInput);
}
m_xvbaBufferPool.picture_descriptor_buffer = 0;
- if (m_xvbaBufferPool.iq_matrix_buffer)
+ if (m_xvbaSession && m_xvbaBufferPool.iq_matrix_buffer)
{
bufInput.buffer_list = m_xvbaBufferPool.iq_matrix_buffer;
g_XVBA_vtable.DestroyDecodeBuffers(&bufInput);
Please sign in to comment.
Something went wrong with that request. Please try again.