1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

DATV demod: tried to fix segfault on avcodec_close()

This commit is contained in:
f4exb 2018-03-04 02:35:15 +01:00
parent 28e9df5fe8
commit c062c99c2a

View File

@ -561,8 +561,9 @@ bool DATVideoRender::CloseStream(QIODevice *objDevice)
//Only once execution //Only once execution
m_blnRunning=true; m_blnRunning=true;
avformat_close_input(&m_objFormatCtx); // maybe done in the avcodec_close
m_objFormatCtx=NULL; // avformat_close_input(&m_objFormatCtx);
// m_objFormatCtx=NULL;
if(m_objDecoderCtx) if(m_objDecoderCtx)
{ {