PlaYUVerStream: LibAvContext may only be free in the deconstructor

This commit is contained in:
2015-11-06 18:47:52 +00:00
parent 851a320a7f
commit ef317dd366
+4 -1
View File
@@ -132,6 +132,10 @@ PlaYUVerStream::PlaYUVerStream()
PlaYUVerStream::~PlaYUVerStream()
{
close();
#ifdef USE_FFMPEG
if( m_cLibAvContext )
delete m_cLibAvContext;
#endif
}
Void PlaYUVerStream::findHandler()
@@ -432,7 +436,6 @@ Void PlaYUVerStream::close()
#ifdef USE_FFMPEG
if( m_iStreamHandler == FFMPEG )
m_cLibAvContext->closeAvFormat();
delete m_cLibAvContext;
#endif
if( m_ppcFrameBuffer )